tft.drawPixel command problem

Hi,
I'm using nano and 1.8 tft lcd

const uint16_t PROGMEM screen[]={
0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x0fff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x5fdf, 0x9f9e, 0xaf9c, 0xa77b, 0xa77b, 0xaf5a, 0xb739, 0xb739, 0xb739, 0xb759, 0xb759, 0xb77a, 0xaf7c, 0xa77c, 0x9f7e, 0x8f9f, 0x57bf, 0x17ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, };

uint16_t screen2[]= {
0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x0fff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x5fdf, 0x9f9e, 0xaf9c, 0xa77b, 0xa77b, 0xaf5a, 0xb739, 0xb739, 0xb739, 0xb759, 0xb759, 0xb77a, 0xaf7c, 0xa77c, 0x9f7e, 0x8f9f, 0x57bf, 0x17ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff, 0x07ff,};

tft.drawPixel(col, row, pgm_read_word(array_name+ buffidx));

array name = screen is working
array name = screen2 not working.

Why ? How its work ? Thank you....

please help me :smiley:

Please read and follow the directions in the "How to get the best out of this forum" post, linked at the head of every forum category.

Change:
uint16_t screen2[]= {
to
const uint16_t PROGMEM screen2[]={

Then it should work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.