1
0
mirror of https://github.com/revspace/operame synced 2024-12-04 21:57:30 +00:00

Detect rotated TTGO

This commit is contained in:
Juerd Waalboer 2020-11-17 21:40:34 +01:00
parent 872649e03b
commit 5fdd5596cf

View File

@ -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");