MEMSPACE void read_tests(window *win) { int x,y; uint16_t color; uint16_t buffer[3*16]; // 16 RGB sets y = 4; tft_readRect(win, x, y, 16, 1, buffer); for(x=0;x<16;++x) { printf("x:%d,y:%d,c:%04x\n", x,y,buffer[x]); } printf("\n"); }
MEMSPACE void read_tests(window *win) { int x,y; uint16_t color; uint16_t buffer[3*16]; // 16 RGB sets y = 4; tft_readRect(win, x, y, 16, 1, buffer); for(x=0;x<16;++x) { //color = tft_readPixel(win,x,y); // DEBUG_PRINTF("x:%d,y:%d,c:%04x\n", x,y,color); DEBUG_PRINTF("x:%d,y:%d,c:%04x\n", x,y,buffer[x]); } DEBUG_PRINTF("\n"); }