From f1ee685ec80b06bbf9f9453c64d3c70bfac6048f Mon Sep 17 00:00:00 2001 From: Petr Kracik Date: Thu, 12 Dec 2019 18:22:22 +0100 Subject: [PATCH] Pulse delay to definition --- YAOCMouse.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/YAOCMouse.ino b/YAOCMouse.ino index 8bc3950..b36f8a6 100644 --- a/YAOCMouse.ino +++ b/YAOCMouse.ino @@ -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); } }