aboutsummaryrefslogtreecommitdiff
path: root/keyboards/honeycomb/honeycomb.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/honeycomb/honeycomb.h')
-rwxr-xr-xkeyboards/honeycomb/honeycomb.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/honeycomb/honeycomb.h b/keyboards/honeycomb/honeycomb.h
new file mode 100755
index 000000000..9374a02c5
--- /dev/null
+++ b/keyboards/honeycomb/honeycomb.h
@@ -0,0 +1,37 @@
1#pragma once
2
3#define HONEYCOMB_H
4
5#include "quantum.h"
6#include "matrix.h"
7#include "backlight.h"
8#include <stddef.h>
9
10#define RED_LED_OFF() writePinHigh(F6)
11#define RED_LED_ON() writePinLow(F6)
12#define BLU_LED_OFF() writePinHigh(F5)
13#define BLU_LED_ON() writePinLow(F5)
14#define GRN_LED_OFF() writePinHigh(D1)
15#define GRN_LED_ON() writePinLow(D1)
16
17#define SET_LED_OFF (RED_LED_OFF(); GRN_LED_OFF(); BLU_LED_OFF(); )
18#define SET_LED_RED (RED_LED_ON(); GRN_LED_OFF(); BLU_LED_OFF(); )
19#define SET_LED_BLUE (RED_LED_OFF(); GRN_LED_OFF(); BLU_LED_ON(); )
20#define SET_LED_GREEN (RED_LED_OFF(); GRN_LED_ON(); BLU_LED_OFF(); )
21#define SET_LED_YELLOW (RED_LED_ON(); GRN_LED_ON(); BLU_LED_OFF(); )
22#define SET_LED_MAGENTA (RED_LED_ON(); GRN_LED_OFF(); BLU_LED_ON(); )
23#define SET_LED_CYAN (RED_LED_OFF(); GRN_LED_ON(); BLU_LED_ON(); )
24#define SET_LED_WHITE (RED_LED_ON(); GRN_LED_ON(); BLU_LED_ON(); )
25
26// This a shortcut to help you visually see your layout.
27// The first section contains all of the arguements
28// The second converts the arguments into a two-dimensional array
29#define LAYOUT( \
30 k13, k14, k15, k16, \
31 k09, k10, k11, k12, \
32 k05, k06, k07, k08, \
33 k01, k02, k03, k04 \
34) \
35{ \
36 { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13, k14, k15, k16 } \
37}