Pulse delay to definition
This commit is contained in:
parent
0982a1efd4
commit
f1ee685ec8
@ -14,6 +14,7 @@
|
|||||||
#define PIN_MOUSE_RBTN 17 // LAN_CLK
|
#define PIN_MOUSE_RBTN 17 // LAN_CLK
|
||||||
|
|
||||||
#define MOUSE_SCALE_MAX 63
|
#define MOUSE_SCALE_MAX 63
|
||||||
|
#define MOUSE_PULSE_DELAY 70
|
||||||
|
|
||||||
const byte mouseStates[4][2] = {
|
const byte mouseStates[4][2] = {
|
||||||
{0, 0},
|
{0, 0},
|
||||||
@ -96,7 +97,7 @@ void amigaYpulse(int8_t count) {
|
|||||||
|
|
||||||
digitalWrite(13, mouseStates[mouseYTableIndex][0]);
|
digitalWrite(13, mouseStates[mouseYTableIndex][0]);
|
||||||
digitalWrite(14, mouseStates[mouseYTableIndex][1]);
|
digitalWrite(14, mouseStates[mouseYTableIndex][1]);
|
||||||
delayMicroseconds(70);
|
delayMicroseconds(MOUSE_PULSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
mouseYworking = false;
|
mouseYworking = false;
|
||||||
@ -126,7 +127,7 @@ void amigaXpulse(int8_t count) {
|
|||||||
|
|
||||||
digitalWrite(15, mouseStates[mouseXTableIndex][0]);
|
digitalWrite(15, mouseStates[mouseXTableIndex][0]);
|
||||||
digitalWrite(12, mouseStates[mouseXTableIndex][1]);
|
digitalWrite(12, mouseStates[mouseXTableIndex][1]);
|
||||||
delayMicroseconds(70);
|
delayMicroseconds(MOUSE_PULSE_DELAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user