泡面一包半主义 发表于 2014-4-2 15:40:30

【求助】关于 Arduino 1.0.5 里的 serialEvent() 的问题。

表示和某一年前无人回答的帖子一样的问题,表示在Serial Monitor里输入发送无回应,程序无问题,是什么原因?附上帖子
http://www.geek-workshop.com/forum.php?mod=viewthread&tid=4253

泡面一包半主义 发表于 2014-4-2 17:10:20

话说没人知道吗?

Be1ieve 发表于 2014-4-2 18:55:36

问题在下面这段:
    // if the incoming character is a newline, set a flag
    // so the main loop can do something about it:
    if (inChar == '\n') {
      stringComplete = true;
    }

先看看你有没有设定newline
页: [1]
查看完整版本: 【求助】关于 Arduino 1.0.5 里的 serialEvent() 的问题。