summaryrefslogtreecommitdiffstats
path: root/keyboards/honeycomb/honeycomb.h
diff options
context:
space:
mode:
authorCarlos <filoxo@users.noreply.github.com>2019-02-05 18:59:10 +0100
committerDrashna Jaelre <drashna@live.com>2019-02-05 18:59:10 +0100
commitd4e1e712f68567dfed6ff19cf762d01f6bb3d60c (patch)
treef3fdeb1c2702ba18aec11c67935a2dea24d5bc36 /keyboards/honeycomb/honeycomb.h
parent612dc232d7e1e88dcd21be09eb32ef7099af854a (diff)
downloadqmk_firmware-d4e1e712f68567dfed6ff19cf762d01f6bb3d60c.tar.gz
qmk_firmware-d4e1e712f68567dfed6ff19cf762d01f6bb3d60c.tar.xz
dd Honeycomb macropad (#5000)
* Add Honeycome macropad * Replace pragma, update info * Update code based on review
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 @@
+#pragma once
+
+#define HONEYCOMB_H
+
+#include "quantum.h"
+#include "matrix.h"
+#include "backlight.h"
+#include <stddef.h>
+
+#define RED_LED_OFF() writePinHigh(F6)
+#define RED_LED_ON() writePinLow(F6)
+#define BLU_LED_OFF() writePinHigh(F5)
+#define BLU_LED_ON() writePinLow(F5)
+#define GRN_LED_OFF() writePinHigh(D1)
+#define GRN_LED_ON() writePinLow(D1)
+
+#define SET_LED_OFF (RED_LED_OFF(); GRN_LED_OFF(); BLU_LED_OFF(); )
+#define SET_LED_RED (RED_LED_ON(); GRN_LED_OFF(); BLU_LED_OFF(); )
+#define SET_LED_BLUE (RED_LED_OFF(); GRN_LED_OFF(); BLU_LED_ON(); )
+#define SET_LED_GREEN (RED_LED_OFF(); GRN_LED_ON(); BLU_LED_OFF(); )
+#define SET_LED_YELLOW (RED_LED_ON(); GRN_LED_ON(); BLU_LED_OFF(); )
+#define SET_LED_MAGENTA (RED_LED_ON(); GRN_LED_OFF(); BLU_LED_ON(); )
+#define SET_LED_CYAN (RED_LED_OFF(); GRN_LED_ON(); BLU_LED_ON(); )
+#define SET_LED_WHITE (RED_LED_ON(); GRN_LED_ON(); BLU_LED_ON(); )
+
+// This a shortcut to help you visually see your layout.
+// The first section contains all of the arguements
+// The second converts the arguments into a two-dimensional array
+#define LAYOUT( \
+ k13, k14, k15, k16, \
+ k09, k10, k11, k12, \
+ k05, k06, k07, k08, \
+ k01, k02, k03, k04 \
+) \
+{ \
+ { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13, k14, k15, k16 } \
+}