Arduino字符串常量过多好像会导致程序卡死
在写Arduino程序的时候,使用了很多:
Serial.println("log.....");
之类的打印信息的语句,发现用多了之后,Arduino跑着跑着就会卡死不动了。
好像是因为这个问题:
http://www.amobbs.com/thread-5383055-1-1.html
不知道各位有没有遇到过这个问题 没有遇到过,也有可能是串口通信不稳定吧 看上去是这个原因,也不排除函数问题,改用Serial.print("log....."); + Serial.print('\n');
页:
[1]