Pulse delay to definition
This commit is contained in:
		@@ -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);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user