cbm80amiga / Arduino_ST7735_STM

Fast STM32 SPI-DMA library for ST7735 128x160 display
GNU Lesser General Public License v3.0
16 stars 12 forks source link

OffSet on 128x128 ST7735 #3

Open Marcelocm1995 opened 3 years ago

Marcelocm1995 commented 3 years ago

Hi, how can I change offset's to work 100% with 128x128 display?

Sorry for my english!!

Thanks

cbm80amiga commented 3 years ago

I don't know. Sorry, I have only 160x128 display. I took init commands from Adafruit - try to check there if there is anything specific for 128x128 display

Marcelocm1995 commented 3 years ago

I got it! :) For solve this I change lines 38 and 39 in "Arduino_ST7735_STM.h" file, only putting:

define ST7735_TFTWIDTH 132

define ST7735_TFTHEIGHT 132 //160

Thanks for this lib, It's much better than standard lib (for avr's).