Correct version of the st7789.cpp driver!

pull/103/head
David Tillotson 2021-03-06 17:02:48 +00:00 zatwierdzone przez Phil Howard
rodzic 237d59d1d1
commit 98b633f31f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -51,11 +51,11 @@ namespace pimoroni {
sleep_ms(150); sleep_ms(150);
if(width == 240 && height == 240) { if(width == 240 && height == 240) {
madctl = 0x04; madctl[0] = 0x04;
} }
if(width == 240 && height == 135) { if(width == 240 && height == 135) {
madctl = 0x70; madctl[0] = 0x70;
} }
command(reg::MADCTL, 1, madctl); // row/column addressing order - rgb pixel order command(reg::MADCTL, 1, madctl); // row/column addressing order - rgb pixel order