Last active
January 18, 2022 00:20
-
-
Save arai-ta/b56b48e76e434162022220783ea279f0 to your computer and use it in GitHub Desktop.
仮称 "SS60pi" ファームウェア
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize a Keyboard | |
kbd = Keyboard.new | |
# Initialize GPIO assign | |
kbd.init_pins( | |
#[ 8, 9, 10, 11, 12 ], # row0, row1,... respectively | |
#[ 2, 3, 4, 5, 6, 7 ] # col0, col1,... respectively | |
# If you put USB port on the right side, use below instead | |
[ 6, 7, 8], | |
[ 2, 3, 4] | |
) | |
kbd.add_layer :default, %i( | |
KC_Q KC_W KC_E | |
KC_A KC_S KC_D | |
KC_1 KC_2 KC_3 | |
) | |
kbd.start! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment