commit 9cb87538145d130ecf992887c545070210ccbea7
parent e78cf06ea91fb307a2255b391cd405822f745038
Author: Lukas F. Hartmann <lukas@mntre.com>
Date: Mon, 31 May 2021 19:34:06 +0200
keyboard: add neo2 version
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/reform2-keyboard-fw/Keyboard.c b/reform2-keyboard-fw/Keyboard.c
@@ -41,8 +41,9 @@
#include <stdlib.h>
#define KBD_FW_REV "R1 20210419"
-//#define KBD_VARIANT_STANDALONE
+#define KBD_VARIANT_STANDALONE
#define KBD_VARIANT_QWERTY_US
+//#define KBD_VARIANT_NEO2
/** Buffer to hold the previously generated Keyboard HID report, for comparison purposes inside the HID class driver. */
static uint8_t PrevKeyboardHIDReportBuffer[sizeof(USB_KeyboardReport_Data_t)];
@@ -744,6 +745,11 @@ int main(void)
#ifdef KBD_VARIANT_QWERTY_US
matrix[15*4+1]=KEY_DELETE;
#endif
+#ifdef KBD_VARIANT_NEO2
+ matrix[15*3+0]=HID_KEYBOARD_SC_CAPS_LOCK; // M3
+ matrix[15*2+13]=KEY_ENTER;
+ matrix[15*3+13]=KEY_BACKSLASH_AND_PIPE; // M3
+#endif
SetupHardware();
GlobalInterruptEnable();