summaryrefslogtreecommitdiff
path: root/keyboards/lets_split/rev2
diff options
context:
space:
mode:
authorDanny Nguyen <danny@80pct.com>2017-04-03 12:15:14 -0400
committerDanny Nguyen <danny@80pct.com>2017-04-03 13:24:11 -0400
commitd0cfaba6d2f4ddf6aee7f05408971a0d4712bd60 (patch)
treeaaee6d69ba9e0b5fc77055e4ee1e673957b23282 /keyboards/lets_split/rev2
parent48f4c5997bd0e041379f592f3e1e0c306e5a5e4d (diff)
Revise KEYMAP macro to make left and right halves more clear
Diffstat (limited to 'keyboards/lets_split/rev2')
-rw-r--r--keyboards/lets_split/rev2/rev2.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/keyboards/lets_split/rev2/rev2.h b/keyboards/lets_split/rev2/rev2.h
index 054731366e..0603827e08 100644
--- a/keyboards/lets_split/rev2/rev2.h
+++ b/keyboards/lets_split/rev2/rev2.h
@@ -10,62 +10,62 @@
#ifdef USE_I2C
#include <stddef.h>
#ifdef __AVR__
-#include <avr/io.h>
-#include <avr/interrupt.h>
+ #include <avr/io.h>
+ #include <avr/interrupt.h>
#endif
#ifdef SSD1306OLED
-extern bool iota_gfx_init(void);
-extern void iota_gfx_task(void);
-extern bool iota_gfx_off(void);
-extern bool iota_gfx_on(void);
-extern void iota_gfx_flush(void);
-extern void iota_gfx_write_char(uint8_t c);
-extern void iota_gfx_write(const char *data);
-extern void iota_gfx_write_P(const char *data);
-extern void iota_gfx_clear_screen(void);
+ extern bool iota_gfx_init(void);
+ extern void iota_gfx_task(void);
+ extern bool iota_gfx_off(void);
+ extern bool iota_gfx_on(void);
+ extern void iota_gfx_flush(void);
+ extern void iota_gfx_write_char(uint8_t c);
+ extern void iota_gfx_write(const char *data);
+ extern void iota_gfx_write_P(const char *data);
+ extern void iota_gfx_clear_screen(void);
#endif
#endif
//void promicro_bootloader_jmp(bool program);
#ifndef FLIP_HALF
-//Standard Keymap
+// Standard Keymap
+// (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
#define KEYMAP( \
- k40, k41, k42, k43, k44, k45, k05, k04, k03, k02, k01, k00, \
- k50, k51, k52, k53, k54, k55, k15, k14, k13, k12, k11, k10, \
- k60, k61, k62, k63, k64, k65, k25, k24, k23, k22, k21, k20, \
- k70, k71, k72, k73, k74, k75, k35, k34, k33, k32, k31, k30 \
+ L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
+ L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
+ L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
+ L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
) \
{ \
- { k45, k44, k43, k42, k41, k40 }, \
- { k55, k54, k53, k52, k51, k50 }, \
- { k65, k64, k63, k62, k61, k60 }, \
- { k75, k74, k73, k72, k71, k70 }, \
- { k00, k01, k02, k03, k04, k05 }, \
- { k10, k11, k12, k13, k14, k15 }, \
- { k20, k21, k22, k23, k24, k25 }, \
- { k30, k31, k32, k33, k34, k35 } \
+ { L00, L01, L02, L03, L04, L05 }, \
+ { L10, L11, L12, L13, L14, L15 }, \
+ { L20, L21, L22, L23, L24, L25 }, \
+ { L30, L31, L32, L33, L34, L35 }, \
+ { R05, R04, R03, R02, R01, R00 }, \
+ { R15, R14, R13, R12, R11, R10 }, \
+ { R25, R24, R23, R22, R21, R20 }, \
+ { R35, R34, R33, R32, R31, R30 } \
}
-
#else
-// Keymap with one side flipped
+// Keymap with right side flipped
+// (TRRS jack on both halves are to the right)
#define KEYMAP( \
- k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \
- k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \
- k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \
- k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \
+ L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
+ L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
+ L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
+ L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
) \
{ \
- { k00, k01, k02, k03, k04, k05 }, \
- { k10, k11, k12, k13, k14, k15 }, \
- { k20, k21, k22, k23, k24, k25 }, \
- { k30, k31, k32, k33, k34, k35 }, \
- { k45, k44, k43, k42, k41, k40 }, \
- { k55, k54, k53, k52, k51, k50 }, \
- { k65, k64, k63, k62, k61, k60 }, \
- { k75, k74, k73, k72, k71, k70 } \
+ { L00, L01, L02, L03, L04, L05 }, \
+ { L10, L11, L12, L13, L14, L15 }, \
+ { L20, L21, L22, L23, L24, L25 }, \
+ { L30, L31, L32, L33, L34, L35 }, \
+ { R00, R01, R02, R03, R04, R05 }, \
+ { R10, R11, R12, R13, R14, R15 }, \
+ { R20, R21, R22, R23, R24, R25 }, \
+ { R30, R31, R32, R33, R34, R35 } \
}
#endif
-
-#endif \ No newline at end of file
+#endif