1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-14 05:05:01 -05:00
Arduino-USB-HID-RetroJoysti.../C64_keyboard/C64_joystick.sc

22 lines
512 B
Python
Raw Normal View History

2019-08-06 17:49:53 -04:00
# Matrix setup for Atari joysticks
matrix
scanrate 1
debounce 5
blocking 1
2019-08-06 17:55:33 -04:00
# Joystick 1 (Joystick GND to Arduino GND)
unstrobed -PD1 PAD_8 #pin_2
unstrobed -PD0 PAD_2 #pin_3
unstrobed -PD4 PAD_4 #pin_4
unstrobed -PC6 PAD_6 #pin_5
unstrobed -PD7 PAD_0 #pin_6
2019-08-06 17:49:53 -04:00
2019-08-06 17:55:33 -04:00
# Joystick 2 (Joystick GND to Arduino GND)
unstrobed -PF4 PAD_SLASH #pin_A3
unstrobed -PF5 PAD_ASTERIX #pin_A2
unstrobed -PF6 PAD_MINUS #pin_A1
unstrobed -PF7 PAD_PLUS #pin_A0
unstrobed -PB1 SCROLL_LOCK #pin_15
end