diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/do60/do60.h |
Diffstat (limited to 'keyboards/do60/do60.h')
-rw-r--r-- | keyboards/do60/do60.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/keyboards/do60/do60.h b/keyboards/do60/do60.h new file mode 100644 index 000000000..8a4b6037d --- /dev/null +++ b/keyboards/do60/do60.h | |||
@@ -0,0 +1,94 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | /* DO60 LEDs | ||
6 | * GPIO pads | ||
7 | * 0 F7 not connected | ||
8 | * 1 F6 not connected | ||
9 | * 2 F5 RGB PWM Underglow | ||
10 | * 3 F4 Backlight LED | ||
11 | * B2 Capslock LED | ||
12 | * B0 not connected | ||
13 | */ | ||
14 | |||
15 | /* | ||
16 | inline void do60_caps_led_on(void) { DDRB |= (1<<2); PORTB &= ~(1<<2); } | ||
17 | inline void do60_bl_led_on(void) { DDRF |= (1<<4); PORTF &= ~(1<<4); } | ||
18 | |||
19 | inline void do60_caps_led_off(void) { DDRB &= ~(1<<2); PORTB &= ~(1<<2); } | ||
20 | inline void do60_bl_led_off(void) { DDRF &= ~(1<<4); PORTF &= ~(1<<4); } | ||
21 | */ | ||
22 | |||
23 | inline void setdefaultrgb(void){ rgblight_sethsv(100,100,100); } | ||
24 | |||
25 | /* Do60 Keymap Definition Macro */ | ||
26 | #define LAYOUT_all( \ | ||
27 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
28 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
29 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
30 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
31 | K40, K41, K42, K45, K46, K47, K4A, K4B, K4C, K4D, K4E \ | ||
32 | ) { \ | ||
33 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
34 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO, K1E }, \ | ||
35 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
36 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
37 | { K40, K41, K42, KC_NO,KC_NO,K45, K46, K47, KC_NO,KC_NO,K4A, K4B, K4C, K4D, K4E } \ | ||
38 | } | ||
39 | |||
40 | #define LAYOUT_60_hhkb( \ | ||
41 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
42 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
43 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2E, \ | ||
44 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3E, \ | ||
45 | K41, K42, K46, K4A, K4B \ | ||
46 | ) { \ | ||
47 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
48 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO, K1E }, \ | ||
49 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, KC_NO, K2E }, \ | ||
50 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, K3D, K3E }, \ | ||
51 | { KC_NO, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, KC_NO, KC_NO, KC_NO } \ | ||
52 | } | ||
53 | |||
54 | #define LAYOUT_60_ansi( \ | ||
55 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, \ | ||
56 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
57 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2E, \ | ||
58 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, \ | ||
59 | K40, K41, K42, K46, K4A, K4B, K4C, K4E \ | ||
60 | ) { \ | ||
61 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, KC_NO, K0E }, \ | ||
62 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO, K1E }, \ | ||
63 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, KC_NO, K2E }, \ | ||
64 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, K3D, KC_NO }, \ | ||
65 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, KC_NO, K4E } \ | ||
66 | } | ||
67 | |||
68 | #define LAYOUT_60_ansi_split_bs_rshift( \ | ||
69 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
70 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
71 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2E, \ | ||
72 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3E, \ | ||
73 | K40, K41, K42, K46, K4A, K4B, K4C, K4E \ | ||
74 | ) { \ | ||
75 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
76 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO, K1E }, \ | ||
77 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, KC_NO, K2E }, \ | ||
78 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, K3D, K3E }, \ | ||
79 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, KC_NO, K4E } \ | ||
80 | } | ||
81 | |||
82 | #define LAYOUT_chiwi60_default( \ | ||
83 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
84 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
85 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2E, \ | ||
86 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3E, \ | ||
87 | K40, K41, K42, K45, K47, K4A, K4B, K4C, K4D, K4E \ | ||
88 | ) { \ | ||
89 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
90 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, KC_NO, K1E }, \ | ||
91 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, KC_NO, K2E }, \ | ||
92 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, K3D, K3E }, \ | ||
93 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, K47, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E } \ | ||
94 | } | ||