Hi all, i'm new on the forum, i'm try to use an 1.8'' display (the label says "KMR-1.8 SPI") i hocked it up first to an arduino nano then to an arduino UNO, i have tried 3 of them, all does the same thing: the display works well but it prints mirrored!
i have tried adafruit library and now i'm using ucglib and both does the same thing.
how i can solve that ?
system
September 9, 2018, 12:29pm
2
You could send the data pre-mirrored, or you could send the appropriate command to the LCD that makes it display un-mirrored.
Google for "Bodmer ST7735"
This will show you how to wire up a 3.3V display to your 5V Uno.
And he has probably got support for your specific model.
It is very easy to change mirroring but the first job is to connect the hardware properly.
David.
i built a level shifter, the display si correctly connected, that is not the problem, how i can send commands to my display controller?
system
September 9, 2018, 1:00pm
5
Finding out what the controller is would be a great start.
ST7735
i tried:
//
digitalWrite(8, LOW); // Command mode
delay(5);
digitalWrite(9, LOW);
delay(5);
SPI.transfer(0x40); // flip
delay(5);
digitalWrite(9, HIGH);
//
but it doesn't work.
problem solved!!!!
i patched the "adafruit_ST7735.cpp" file, in the switch case of rotation as follow:
madctl = 0x00 | ST77XX_MADCTL_MY | ST77XX_MADCTL_RGB;
instead of
madctl = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY | ST7735_MADCTL_RGB;
all works perfectly