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

92 lines
1.8 KiB
Python
Raw Permalink Normal View History

2023-02-11 14:21:51 -05:00
# https://github.com/tebl/C64-JoyKEY
# https://github.com/tebl/C64-JoyKEY/blob/main/documentation/schematic/C64%20Joykey.pdf
#
2023-02-11 17:43:29 -05:00
# http://kookye.com/wp-content/uploads/2016/02/Pinout-ProMicro.jpg
2023-02-11 14:21:51 -05:00
# https://deskthority.net/wiki/Arduino_Pro_Micro
#
# PD1(D2) fire1
# PD0(D3) fire2
# PD4(D4) fire3
# PB3(D14) left
# PB1(D15) down
2023-02-12 15:46:24 -05:00
# PF7(A0/D18) right
# PF6(A1/D19) up
2023-02-11 17:10:25 -05:00
# PD7(D6) underglowleds
# PB6(D10) sysled
# PB5(D9) powerled
2023-02-11 17:42:01 -05:00
# '+' prefix = off at startup
# '-' prefix = on at startup
2023-02-11 17:10:25 -05:00
led caps -PD7
2023-02-11 17:29:43 -05:00
led num +PB6
2023-02-11 17:10:25 -05:00
led scroll -PB5
2023-02-11 14:21:51 -05:00
matrix
scanrate 1
debounce 5
blocking 1
2023-02-12 15:47:52 -05:00
unstrobed -PD1 1
unstrobed -PD0 2
unstrobed -PD4 3
unstrobed -PB3 L
unstrobed -PB1 D
unstrobed -PF7 R
unstrobed -PF6 U
2023-02-11 14:21:51 -05:00
end
2023-02-11 14:29:13 -05:00
2023-02-13 07:54:24 -05:00
# Ultimate 64: fire 3 -> reset
2023-02-13 06:23:54 -05:00
macroblock
2023-02-13 06:24:05 -05:00
macro 3 -ALL
2023-02-13 06:34:50 -05:00
MAKE LGUI
2023-02-13 07:50:48 -05:00
MAKE LALT
MAKE LSHIFT
DELAY 50
2023-02-13 06:59:39 -05:00
PRESS LCTRL
2023-02-13 07:50:48 -05:00
DELAY 50
2023-02-13 06:59:39 -05:00
BREAK LSHIFT
2023-02-13 07:50:48 -05:00
BREAK LALT
BREAK LGUI
2023-02-13 06:23:54 -05:00
endmacro
endblock
2023-02-11 17:29:16 -05:00
# example, press a-button to CAPS_LOCK = toggle underglowleds
#macroblock
# macro A -ALL
# PRESS CAPS_LOCK
# CLEAR_ALL
# endmacro
#endblock
# example, press b-button to NUM_LOCK = toggle SYS-led
#macroblock
# macro B -ALL
# PRESS NUM_LOCK
# CLEAR_ALL
# endmacro
#endblock
# example, press c-button to SCROLL_LOCK = toggle PWR-led
#macroblock
# macro C -ALL
# PRESS SCROLL_LOCK
# CLEAR_ALL
# endmacro
#endblock
# example, press d-button to get shifted D
#macroblock
# macro D -ALL
# SET_META LSHIFT
# PRESS D
# CLEAR_ALL
# endmacro
#endblock
2023-02-11 17:10:25 -05:00
2023-02-11 14:29:13 -05:00
#
# unstrobed
# Specifies a single pin to read and the corresponding HID code.
# This is intended for a single switch which can be wired with the other side of the switch permanently connected to either ground or +5V. If the other side of the switch is at +5V, a pull-down resistor must be added between the pin and ground.
# Example:
# unstrobed -PF1 LSHIFT