mirror of
https://github.com/revspace/operame
synced 2024-12-04 21:57:30 +00:00
Detect rotated TTGO
This commit is contained in:
parent
872649e03b
commit
5fdd5596cf
@ -130,6 +130,12 @@ void setup() {
|
|||||||
display.setRotation(1);
|
display.setRotation(1);
|
||||||
sprite.createSprite(display.width(), display.height());
|
sprite.createSprite(display.width(), display.height());
|
||||||
|
|
||||||
|
pinMode(12, INPUT_PULLUP);
|
||||||
|
while (digitalRead(12)) {
|
||||||
|
display_big("module verkeerd om!", TFT_RED);
|
||||||
|
delay(1000);
|
||||||
|
}
|
||||||
|
|
||||||
hwserial1.begin(9600, SERIAL_8N1, 22, 21);
|
hwserial1.begin(9600, SERIAL_8N1, 22, 21);
|
||||||
mhz.begin(hwserial1);
|
mhz.begin(hwserial1);
|
||||||
display_big("operame");
|
display_big("operame");
|
||||||
|
Loading…
Reference in New Issue
Block a user