godstale / retrowatch

Retro watch is open source smart watch project using Arduino and Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Having problems with the size of sketch.

nazes123 opened this issue · comments

bitmap.h:1269: 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[] = {

                                       ^

After changing "PROGMEM const unsigned char* bitmap_array[] = {" into "PROGMEM const unsigned char* const bitmap_array[] = {",
I got this problem:
Sketch uses 22720 bytes (158%) of program storage space. Maximum is 14336 bytes.
Global variables use 664 bytes (64%) of dynamic memory, leaving 360 bytes for local variables. Maximum is 1024 bytes.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.

Error compiling for board Arduino Pro or Pro Mini.

my board is arduino pro mini atmega328 3.3V 8MHz