Much better
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ uint8_t joystickREPos(int8_t dir, size_t encPos) {
|
||||
// has elapsed to release it
|
||||
void rotateRE(int8_t pos) {
|
||||
Joystick.setButton(pos, HIGH);
|
||||
delayMicroseconds(RE_PULSE_DURATION);
|
||||
delay(RE_PULSE_DURATION);
|
||||
Joystick.setButton(pos, LOW);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
const int RE_NOCHANGE = 0;
|
||||
const int RE_CCW = -1;
|
||||
const int RE_CW = 1;
|
||||
const int RE_PULSE_DURATION = 20000; // microsseconds
|
||||
const int RE_PULSE_DURATION = 100; // microsseconds
|
||||
|
||||
typedef struct {
|
||||
int clkPin;
|
||||
|
||||
Reference in New Issue
Block a user