loboris / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
553 stars 219 forks source link

TFT_readData didn't read #64

Open GermanSheepDog opened 5 years ago

GermanSheepDog commented 5 years ago

Hello,

I used "TFT_readData" for reading the color data from rectangular screen. I always received 0xff.

I tested it in tftspi.c:

// Read color line ret = read_data(0, _height/2, _width-1, _height/2, _width, line_rdbuf, 0); printf("Receive: "); for (int u=0; u<_width*3; u++) printf("%02x ",line_rdbuf[u]); printf("\n");

Can anyone help me?