Much better

This commit is contained in:
2025-10-22 00:08:29 +01:00
parent 86f27d4170
commit 93022221cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ uint8_t joystickREPos(int8_t dir, size_t encPos) {
// has elapsed to release it // has elapsed to release it
void rotateRE(int8_t pos) { void rotateRE(int8_t pos) {
Joystick.setButton(pos, HIGH); Joystick.setButton(pos, HIGH);
delayMicroseconds(RE_PULSE_DURATION); delay(RE_PULSE_DURATION);
Joystick.setButton(pos, LOW); Joystick.setButton(pos, LOW);
} }
+1 -1
View File
@@ -4,7 +4,7 @@
const int RE_NOCHANGE = 0; const int RE_NOCHANGE = 0;
const int RE_CCW = -1; const int RE_CCW = -1;
const int RE_CW = 1; const int RE_CW = 1;
const int RE_PULSE_DURATION = 20000; // microsseconds const int RE_PULSE_DURATION = 100; // microsseconds
typedef struct { typedef struct {
int clkPin; int clkPin;