This commit is contained in:
2025-05-05 14:44:31 +02:00
parent 2d060cbb15
commit 7087a257c3
4 changed files with 377 additions and 3 deletions

View File

@@ -62,7 +62,9 @@ void loop()
JoystickData.PWMCH2 = mapPot(analogReadMultiPlexer(1, 0, 0, 0, A0)); // Right joystick X
JoystickData.PWMCH3 = mapPot(analogReadMultiPlexer(0, 0, 0, 1, A0)); // left joystick Y
JoystickData.PWMCH4 = mapPot(analogReadMultiPlexer(1, 0, 0, 1, A0)); // left joystick X
bool buttonRight = abs(analogReadMultiPlexer(0, 0, 1, 0, A0)/4095); // right button
bool buttonLeft = abs(analogReadMultiPlexer(1, 0, 1, 0, A0)/4095); // left button
GUIParser();
espNowLoop();
delay(10); // delay to avoid hammering the radio and to save power/heat