制作蓝牙手表时遇到麻烦...
我在Instructables上看到一个制作蓝牙手表(retro watch),自己买了材料,结果上传源程序的时候出现了几项错误:Arduino: 1.6.5 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
C:\Users\ADMINI~1\AppData\Local\Temp\build4384428568727190490.tmp\bitmap.h:1269:43: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM const unsigned char* bitmap_array[] = {
^
error: variable 'weekString' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
error: variable 'ampmString' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
想知道应该如何解决?谢谢
这是出错的几行代码:PROGMEM const unsigned char* bitmap_array[] = {...
PROGMEM const char* weekString[] = {"", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
PROGMEM const char* ampmString[] = {"AM", "PM"}; 这个错误是新的 avr 编译器有一些改变导致的
最简单的方法是:更换为老的ide编译.....
新的也可以改的,只是我忘记了,.,,,, 用1.0的還是1.0之前的? 把const删掉 sunyunzhuo 发表于 2015-7-13 11:05 static/image/common/back.gif
把const删掉
更多错误了... 我也遇到了同样的问题,请问楼主最后是如何解决的呀,如能告知,不胜感激
页:
[1]