Closed Celppu closed 5 years ago
Öööh it seems that almost same block is multiple times on screen. What causes this?
The example is for a 240 x 320 screen.
You must specify the width (i.e. 80) and height (i.e. 160) of your screen in the setup file so the jpeg decoder function knows where the edge of the screen is.
But in the jpeg funtions tft.width() and tft.height() returns resolution already? Or setup file somwhere else?
It seems that it won't stay in boundries set with setAddrWindow. I wrote version that uses drawPixel and it is 3x slower....
I am guessing your are using the TFT_eSPI library.
The option to use in the setup file is:
or
I have just tested my display and though the screen protector has a green tab I had to use the 2nd option above. When you use this option the screen size is set for you so you do not need to specify the width and height in the setup file.
Actually you do need to define the width and height in setup...
I have smaller ips 80*160 rgb display and i cannot get decoder to work correctly. I can see that it draws 16x16 blocks but those are in somehow rnd order and messy. I'm using nodemcu_jpeg example