Pulse delay to definition

This commit is contained in:
Petr Kracik 2019-12-12 18:22:22 +01:00
parent 0982a1efd4
commit f1ee685ec8
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 830B43F489EB7037

View File

@ -14,6 +14,7 @@
#define PIN_MOUSE_RBTN 17 // LAN_CLK
#define MOUSE_SCALE_MAX 63
#define MOUSE_PULSE_DELAY 70
const byte mouseStates[4][2] = {
{0, 0},
@ -96,7 +97,7 @@ void amigaYpulse(int8_t count) {
digitalWrite(13, mouseStates[mouseYTableIndex][0]);
digitalWrite(14, mouseStates[mouseYTableIndex][1]);
delayMicroseconds(70);
delayMicroseconds(MOUSE_PULSE_DELAY);
}
mouseYworking = false;
@ -126,7 +127,7 @@ void amigaXpulse(int8_t count) {
digitalWrite(15, mouseStates[mouseXTableIndex][0]);
digitalWrite(12, mouseStates[mouseXTableIndex][1]);
delayMicroseconds(70);
delayMicroseconds(MOUSE_PULSE_DELAY);
}
}