vvvv 发表于 2012-6-19 19:23:10

请问各位,为什么我的arduino只要遇到Serial.print(data,BYTE);这个就不行

我在arduino编程过程中,只要遇到Serial.print(data,BYTE);就出现如下提示


sketch_jun19a.cpp: In function 'void loop()':
sketch_jun19a:13: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.


请问如何解决?

wing 发表于 2012-6-19 20:45:03

大小写问题

弘毅 发表于 2012-6-19 20:58:21

可以参考这个帖子
http://www.geek-workshop.com/forum.php?mod=viewthread&tid=683

ucucucuc 发表于 2018-3-22 21:48:41

非常感谢!   我还在用2012年出版的书。。。。
页: [1]
查看完整版本: 请问各位,为什么我的arduino只要遇到Serial.print(data,BYTE);这个就不行