1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-12-22 15:38:49 -05:00
Arduino-USB-HID-RetroJoysti.../C64_keyboard/C64_matrix.sc

49 lines
1.1 KiB
Python
Raw Normal View History

2019-02-09 05:25:06 -05:00
# Matrix setup for COMMODORE 64
#led caps PD0
#led num PD1
#led scroll PF0
matrix
scanrate 1
debounce 5
blocking 1
2019-03-26 11:29:01 -04:00
sense PB6 PB2 PB3 PB1 PF7 PF6 PF5 PF4 PD3
strobe PD1 1 BACK_QUOTE TAB ESC SPACE LCTRL Q 2 UNASSIGNED
strobe PD0 3 W A LSHIFT Z S E 4 UNASSIGNED
strobe PD4 5 R D X C F T 6 UNASSIGNED
strobe PC6 7 Y G V B H U 8 UNASSIGNED
strobe PD7 9 I J N M K O 0 UNASSIGNED
strobe PE6 MINUS P L COMMA PERIOD SEMICOLON LEFT_BRACE EQUAL UNASSIGNED
strobe PB4 INSERT RIGHT_BRACE QUOTE SLASH RSHIFT BACKSLASH DELETE HOME PAGE_UP
strobe PB5 BACKSPACE ENTER RIGHT DOWN F1 F3 F5 F7 UNASSIGNED
2019-02-09 05:25:06 -05:00
end
2019-02-12 13:35:08 -05:00
# arrow left = BACK_QUOTE (section/fraction)
2019-03-26 11:29:01 -04:00
# pound (£) = INSERT
2019-02-12 13:35:08 -05:00
# restore = PAGE_UP
# run/stop = ESC
# commodore = LCTRL
# arrow up = DELETE
2019-03-26 11:29:01 -04:00
# asterisk (*) = RIGHT_BRACE
# minus (-) = EQUAL
# plus (+) = MINUS
# at (@) = LEFT_BRACE
2019-02-12 13:35:08 -05:00
# ctrl = TAB
# lshift = LSHIFT
# rshift = RSHIFT
2019-03-26 11:29:01 -04:00
# equal (=) = BACKSLASH
# colon (:) = SEMICOLON
# semicolon (;) = QUOTE
2019-02-09 05:25:06 -05:00
2024-02-13 13:36:23 -05:00
# circumvent TheC64 LSHIFT-LEFTARROW Menu-problem
macroblock
macro BACK_QUOTE LSHIFT
CLEAR_META LSHIFT
DELAY 100
PRESS PAD_PERIOD
endmacro
endblock
2019-02-09 05:25:06 -05:00