kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Correct version of the st7789.cpp driver!
rodzic
237d59d1d1
commit
98b633f31f
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue