极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10178|回复: 2

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

[复制链接]
发表于 2014-4-2 15:40:30 | 显示全部楼层 |阅读模式
表示和某一年前无人回答的帖子一样的问题,表示在Serial Monitor里输入发送无回应,程序无问题,是什么原因?附上帖子
http://www.geek-workshop.com/for ... thread&tid=4253
回复

使用道具 举报

 楼主| 发表于 2014-4-2 17:10:20 | 显示全部楼层
话说没人知道吗?
回复 支持 反对

使用道具 举报

发表于 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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-14 16:31 , Processed in 0.037280 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表