aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2019-01-27 23:38:30 +1300
committerMichael Fincham <michael@hotplate.co.nz>2019-01-27 23:38:30 +1300
commit23a3e0c3cf2222a7a6bf125f95d930682e9c2e35 (patch)
treefb6d8626d335c96be2fcbd8d7bd9bfa2c91baf9b
parent6cb6d31985988825ff7f586b5018586816e83ef5 (diff)
downloadqmk_firmware_sculpt-23a3e0c3cf2222a7a6bf125f95d930682e9c2e35.tar.gz
qmk_firmware_sculpt-23a3e0c3cf2222a7a6bf125f95d930682e9c2e35.tar.bz2
qmk_firmware_sculpt-23a3e0c3cf2222a7a6bf125f95d930682e9c2e35.zip
Added some tasteful RGB underlightingHEADmaster
-rw-r--r--keyboards/handwired/sculpt/config.h6
-rw-r--r--keyboards/handwired/sculpt/keymaps/default/keymap.c55
-rw-r--r--keyboards/handwired/sculpt/rules.mk1
3 files changed, 38 insertions, 24 deletions
diff --git a/keyboards/handwired/sculpt/config.h b/keyboards/handwired/sculpt/config.h
index 42af3b098..1dd3904a2 100644
--- a/keyboards/handwired/sculpt/config.h
+++ b/keyboards/handwired/sculpt/config.h
@@ -20,6 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config_common.h"
+#define RGB_DI_PIN B2 // Based on wiring depicted in ws2812_wiring.jpg
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 4 // Number of LEDs. Change this to match your use case.
+
/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6666
@@ -33,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PRODUCT Wired Sculpt
#define MATRIX_ROW_PINS {D0, D1, D2, D3, D4, D5, D6, D7}
#define MATRIX_COL_PINS {E0, E1, C0, C1, C2, C3, C4, C5, C6, C7, F7, F6, F5, F4, F3, F2, F1, F0}
-#define UNUSED_PINS {B0, B1, B2, B3, B4, B5, B6, B7, A0, A1, A2, A3, A4, A5, A6, A7}
+#define UNUSED_PINS {B0, B1, B3, B4, B5, B6, B7, A0, A1, A2, A3, A4, A5, A6, A7}
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
diff --git a/keyboards/handwired/sculpt/keymaps/default/keymap.c b/keyboards/handwired/sculpt/keymaps/default/keymap.c
index 32e239e34..be8a5aa4e 100644
--- a/keyboards/handwired/sculpt/keymaps/default/keymap.c
+++ b/keyboards/handwired/sculpt/keymaps/default/keymap.c
@@ -2,30 +2,39 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-/*
-*
-* |ESC | F1 | F2 | F3 | F4 | F5 | F6 | f7 | F8 | F9 | F10| F11| F12|PrtS|ScrL|Paus|Calc|
-* -------------------------------------------------------------------------------'
-* | ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Bakspace| Del |Home|
-* --------------------------------------------------------------------------
-* | tab | q | w | e | r | t | y | u | i | o | p | [ | ] | \ | |End |
-* -------------------------------------------------------------------------------'
-* | caps | a | s | d | f | g | h | j | k | l | ; | ' | enter |Inst|PgUp|
-* --------------------------------------------------------------------------------
-* |Lsft | z | x | c | v | b | n | m | , | . | / | Rsft| Up| PgDn|
-* ---------------------------------------------------------------------------------
-* |Lctl |Lgui |Lalt | Spc1 | Spc2 |Ralt | Menu| Rctl |Left|Down|Rght|
-* ---------------------------------------------------------------------------------
-*/
+ /*
+ *
+ * |ESC | F1 | F2 | F3 | F4 | F5 | F6 | f7 | F8 | F9 | F10| F11| F12|PrtS|ScrL|Paus|Calc|
+ * -------------------------------------------------------------------------------'
+ * | ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Bakspace| Del |Home|
+ * --------------------------------------------------------------------------
+ * | tab | q | w | e | r | t | y | u | i | o | p | [ | ] | \ | |End |
+ * -------------------------------------------------------------------------------'
+ * | caps | a | s | d | f | g | h | j | k | l | ; | ' | enter |Inst|PgUp|
+ * --------------------------------------------------------------------------------
+ * |Lsft | z | x | c | v | b | n | m | , | . | / | Rsft| Up| PgDn|
+ * ---------------------------------------------------------------------------------
+ * |Lctl |Lgui |Lalt | Spc1 | Spc2 |Ralt | Menu| Rctl |Left|Down|Rght|
+ * ---------------------------------------------------------------------------------
+ */
- [0] = LAYOUT( \
- KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCREEN, KC_SLCK, KC_PAUSE, KC_CALC, \
- KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, KC_HOME, \
- KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, \
- KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_INS, KC_PGUP, \
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, \
- KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_ENT, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
- )
+ [0] = LAYOUT( \
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCREEN, KC_SLCK, KC_PAUSE, MO(1), \
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, KC_HOME, \
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, \
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_INS, KC_PGUP, \
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, \
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_ENT, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
+ ),
+ [1] = LAYOUT( \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, RGB_MOD, RGB_TOG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO \
+ )
+
};
void matrix_init_user(void) {
diff --git a/keyboards/handwired/sculpt/rules.mk b/keyboards/handwired/sculpt/rules.mk
index e0b5a1cc8..18b0715ec 100644
--- a/keyboards/handwired/sculpt/rules.mk
+++ b/keyboards/handwired/sculpt/rules.mk
@@ -18,6 +18,7 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = no # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
+RGBLIGHT_ENABLE = yes
MIDI_ENABLE = no # MIDI controls
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID