Open hpexeph opened 4 years ago
I don't know the details about your 2.8 inch LCD...If its driver is ST7789, of course you can use it. All you need to do is change the code to adapt it's resolution for your LCD. The most significant parameter is:
#define ST7789_WIDTH 240
#define ST7789_HEIGHT 240
And if your screen displays incorrectly, you may also change the parameter
#define ST7789_ROTATION 1
//#define ST7789_ROTATION 1
//#define ST7789_ROTATION 2
//#define ST7789_ROTATION 3
/* And these two below in each rotation settings*/
#define X_SHIFT 53
#define Y_SHIFT 40
I don't have a 2.8 inch LCD so i haven't run any tests on such a LCD.If you have some trouble during the developing, you may refer to ST7789's datasheet:https://www.waveshare.com/w/upload/a/ae/ST7789_Datasheet.pdf And I didn't find any differences between ST7789/V/H2, at least in technical parameters, they are about the same. :)
Hi and thank you for sharing the library. Can I use this library for 2.8 inch lcd? if yes, what changes I have make in the code? If no, why? Is there any difference between st7789 and st7789v and st7789h2?