From fc24621cc1f7cb7d8a421f5a8d931bfd33de5aad Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Wed, 16 Jan 2019 19:29:12 +0200 Subject: [PATCH] Added support for 2 buttons --- RetroJoystickAdapter_Atari.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroJoystickAdapter_Atari.ino b/RetroJoystickAdapter_Atari.ino index 394f8bf..ac34de6 100644 --- a/RetroJoystickAdapter_Atari.ino +++ b/RetroJoystickAdapter_Atari.ino @@ -3,7 +3,7 @@ const uint8_t inputPinsPort1[] = { 5, 6, 7, 8, 0, 4, 0, 0, A2}; const uint8_t inputPinsPort2[] = {10, 16, 14, 15, 0, 3, 0, 0, A1}; //(1 = up, 2 = down, 3 = left, 4 = right, 6 = btn1, 9 = btn2) -#define DEBUG +//#define DEBUG inline void translateState(uint8_t data, uint8_t *state) { state[0] = !bitRead(data, 4) | !bitRead(data, 5)<<1;