我想用Arduino编写一个简单的Hello World代码,在它的系统监视器上显示它,我的代码是:
void setup() // run once, when the sketch starts
{
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Hello world!"); // prints hello with ending line break
}
void loop() // run over and over again
{
// do nothing!
}但是当我运行这段代码时,我在系统monitor.Also上得到了This Image字符,我将Serial.begin()从9600改为其他值,但它不起作用!我如何解决这个问题?
发布于 2016-07-20 01:22:05
检查串行监视器上的波特率。确保它是9600,正如您告诉它应该在您的代码中:
Serial.begin(9600); 在串行监视器的底部,有一个用于选择波特率的下拉列表:

发布于 2016-07-20 20:41:20
你的链接< This Image >显示了很多垃圾。
错误的波特率很少产生这么多(现在有很多重置吗?
你用的是什么类型的arduino?
你能保证Arduino IDE中的SerialMonitor连接到你的Arduino上的串行吗?
https://stackoverflow.com/questions/38464746
复制相似问题