1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-21 08:35:05 -05:00

Update c64_usb_mouse_2.ino

This commit is contained in:
Jarno Lehtinen 2017-06-01 15:47:12 +03:00 committed by GitHub
parent 6db7f9fc36
commit 4341e8961a

View File

@ -191,15 +191,6 @@ void potmouse_movt(int16_t dx, int16_t dy, uint8_t button) {
} }
// Start timer1, Input Capture setup
// ICNC1: Input Capture Noise Canceller (Bit 7 of register TCCR1B)
// ICES1: Input Capture Edge Select (Bit 6 of register TCCR1B) 0 = FALLING, 1 = RISING
// CS12, CS11, CS10: Set prescaler (CS11 TIMER1: F_CPU/8)
//#define START_TIMER1 TCCR1B = _BV(ICNC1) | _BV(CS11)
#define START_TIMER1 TCCR1B = _BV(CS11)
// CS32, CS31, CS30: Set prescaler (CS31 TIMER3: F_CPU/8)
#define START_TIMER2 TCCR3B = _BV(CS31)
inline void startTimers() { inline void startTimers() {
#ifdef DEBUG #ifdef DEBUG
Serial.println("startTimers"); Serial.flush(); Serial.println("startTimers"); Serial.flush();