TRYING TO SOLVE ERROR BUT I CANT

I AM MAKING ANDROID SMARTWATCH REFFRENCING USING ARDUINO BOARD:http://www.instructables.com/id/Make-your-own-smart-watch

THIS CODE IS DOWNLOADED FROM GITHUB:GitHub - godstale/retrowatch: Retro watch is open source smart watch project using Arduino and Android.

CODE IS PROVIDED IN ATTACHMENT..

I AM CONTINUOUSLY GETTING ERROR LIKE this:::

ERROR: 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute_((progmem))'

HOW TO SOLVE THIS OR FIX THIS ERROR
I AM USING ARDUINO IN UBUNTU 14.04

retrowatchpdf.pdf (59.7 KB)

It appears that you need to add the const qualifier to the bitmap_array[] argument:

display.drawBitmap(posx, posy, (const unsigned char*)pgm_read_word(const &(bitmap_array[icon_num])), 16, 16, WHITE);

You also need to get the caps lock key on your keyboard fix.

Mark

vivek121095:
ERROR: 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute_((progmem))'

Are using Arduino 1.0.6 or Arduino 1.5.8 BETA? If you aren't using a DUE or YÚN you should use 1.0.6. If you ARE using a DUE or YÚN you should be posting in the DUE or YÚN section of the forum.