summaryrefslogtreecommitdiffstats
path: root/keyboards/frooastboard
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-06 17:04:10 +0800
committerlokher <lokher@gmail.com>2022-12-06 17:04:10 +0800
commit27fc28fd2ff52e079a5bc58d6aaea4c752420615 (patch)
tree7ac943fb1ba4f430a7220efd18f66f6a77205c30 /keyboards/frooastboard
parente736133392fe6427cfb995da0787337189828272 (diff)
parent2709b6ed616f8012ff4cfd3ee69a822a8d188351 (diff)
Merge upstream master
Diffstat (limited to 'keyboards/frooastboard')
-rw-r--r--keyboards/frooastboard/walnut/config.h55
-rw-r--r--keyboards/frooastboard/walnut/keymaps/via/config.h6
-rw-r--r--keyboards/frooastboard/walnut/keymaps/via/keymap.c20
-rw-r--r--keyboards/frooastboard/walnut/walnut.c86
4 files changed, 167 insertions, 0 deletions
diff --git a/keyboards/frooastboard/walnut/config.h b/keyboards/frooastboard/walnut/config.h
new file mode 100644
index 0000000000..5bdb16e5ec
--- /dev/null
+++ b/keyboards/frooastboard/walnut/config.h
@@ -0,0 +1,55 @@
+// Copyright 2022 Simon Benezan (@Frooastside)
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#define BOOTMAGIC_LITE_ROW 0
+#define BOOTMAGIC_LITE_COLUMN 0
+
+#define ISSI_TIMEOUT 100
+#define ISSI_PERSISTENCE 0
+#define ISSI_PWM_FREQUENCY 0b010
+#define ISSI_SWPULLUP PUR_0R
+#define ISSI_CSPULLUP PUR_0R
+#define DRIVER_COUNT 1
+#define RGB_MATRIX_LED_COUNT 48
+#define DRIVER_ADDR_1 0b1010000
+
+#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 191
+
+#define RGB_DISABLE_WHEN_USB_SUSPENDED
+
+#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
+#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
+#define ENABLE_RGB_MATRIX_BREATHING
+#define ENABLE_RGB_MATRIX_BAND_SAT
+#define ENABLE_RGB_MATRIX_BAND_VAL
+#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
+#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
+#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
+#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
+#define ENABLE_RGB_MATRIX_CYCLE_ALL
+#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
+#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
+#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
+#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
+#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
+#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
+#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
+#define ENABLE_RGB_MATRIX_DUAL_BEACON
+#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
+#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
+#define ENABLE_RGB_MATRIX_RAINDROPS
+#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
+#define ENABLE_RGB_MATRIX_HUE_BREATHING
+#define ENABLE_RGB_MATRIX_HUE_PENDULUM
+#define ENABLE_RGB_MATRIX_HUE_WAVE
+#define ENABLE_RGB_MATRIX_PIXEL_RAIN
+#define ENABLE_RGB_MATRIX_PIXEL_FLOW
+
+#define RGB_MATRIX_LED_FLUSH_LIMIT 16
+#define RGB_MATRIX_DEFAULT_HUE 0
+#define RGB_MATRIX_DEFAULT_SAT 255
+#define RGB_MATRIX_DEFAULT_SPD 191
+#define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
+#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_RAINBOW_MOVING_CHEVRON
diff --git a/keyboards/frooastboard/walnut/keymaps/via/config.h b/keyboards/frooastboard/walnut/keymaps/via/config.h
new file mode 100644
index 0000000000..e1f0fc0db6
--- /dev/null
+++ b/keyboards/frooastboard/walnut/keymaps/via/config.h
@@ -0,0 +1,6 @@
+// Copyright 2022 Simon Benezan (@Frooastside)
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#define DYNAMIC_KEYMAP_LAYER_COUNT 2
diff --git a/keyboards/frooastboard/walnut/keymaps/via/keymap.c b/keyboards/frooastboard/walnut/keymaps/via/keymap.c
new file mode 100644
index 0000000000..f502205761
--- /dev/null
+++ b/keyboards/frooastboard/walnut/keymaps/via/keymap.c
@@ -0,0 +1,20 @@
+// Copyright 2022 Simon Benezan (@Frooastside)
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_all(
+ KC_ESC, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_LSFT, KC_NUBS, 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
+
+ [1] = LAYOUT_all(
+ KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, EE_CLR, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI,
+ KC_TRNS, GUI_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_RMOD,RGB_VAD, RGB_MOD)
+}; \ No newline at end of file
diff --git a/keyboards/frooastboard/walnut/walnut.c b/keyboards/frooastboard/walnut/walnut.c
new file mode 100644
index 0000000000..da398205a0
--- /dev/null
+++ b/keyboards/frooastboard/walnut/walnut.c
@@ -0,0 +1,86 @@
+// Copyright 2022 Simon Benezan (@Frooastside)
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include "walnut.h"
+
+#if defined(RGB_MATRIX_ENABLE)
+
+const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
+/* Refer to IS31 manual for these locations
+ * driver
+ * | R location
+ * | | G location
+ * | | | B location
+ * | | | | */
+ {0, K_1, J_1, L_1},
+ {0, K_2, J_2, L_2},
+ {0, K_3, J_3, L_3},
+ {0, K_4, J_4, L_4},
+ {0, K_5, J_5, L_5},
+ {0, K_6, J_6, L_6},
+ {0, K_7, J_7, L_7},
+ {0, K_8, J_8, L_8},
+ {0, K_9, J_9, L_9},
+ {0, K_10, J_10, L_10},
+ {0, K_11, J_11, L_11},
+ {0, K_12, J_12, L_12},
+ {0, H_1, G_1, I_1},
+ {0, H_2, G_2, I_2},
+ {0, H_3, G_3, I_3},
+ {0, H_4, G_4, I_4},
+ {0, H_5, G_5, I_5},
+ {0, H_6, G_6, I_6},
+ {0, H_7, G_7, I_7},
+ {0, H_8, G_8, I_8},
+ {0, H_9, G_9, I_9},
+ {0, H_10, G_10, I_10},
+ {0, H_11, G_11, I_11},
+ {0, H_12, G_12, I_12},
+ {0, E_1, D_1, F_1},
+ {0, E_2, D_2, F_2},
+ {0, E_3, D_3, F_3},
+ {0, E_4, D_4, F_4},
+ {0, E_5, D_5, F_5},
+ {0, E_6, D_6, F_6},
+ {0, E_7, D_7, F_7},
+ {0, E_8, D_8, F_8},
+ {0, E_9, D_9, F_9},
+ {0, E_10, D_10, F_10},
+ {0, E_11, D_11, F_11},
+ {0, E_12, D_12, F_12},
+ {0, B_1, A_1, C_1},
+ {0, B_2, A_2, C_2},
+ {0, B_3, A_3, C_3},
+ {0, B_4, A_4, C_4},
+ {0, B_5, A_5, C_5},
+ {0, B_6, A_6, C_6},
+ {0, B_7, A_7, C_7},
+ {0, B_8, A_8, C_8},
+ {0, B_9, A_9, C_9},
+ {0, B_10, A_10, C_10},
+ {0, B_11, A_11, C_11},
+ {0, B_12, A_12, C_12}
+};
+
+led_config_t g_led_config = {
+ {
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
+ { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }
+ }, {
+ {0, 62}, {0, 50}, {0, 38}, {0, 26}, {0, 14}, {0, 2},
+ {0, 2}, {12, 2}, {24, 2}, {36, 2}, {48, 2}, {60, 2}, {72, 2}, {84, 2}, {96, 2}, {108, 2}, {120, 2}, {132, 2}, {144, 2}, {156, 2}, {168, 2}, {180, 2}, {192, 2}, {204, 2},
+ {204, 2}, {204, 14}, {204, 26}, {204, 38}, {204, 50}, {204, 62},
+ {204, 62}, {192, 62}, {180, 62}, {168, 62}, {156, 62}, {144, 62}, {132, 62}, {120, 62}, {108, 62}, {96, 62}, {84, 62}, {72, 62}, {60, 62}, {48, 62}, {36, 62}, {24, 62}, {12, 62}, {0, 62}
+ }, {
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
+ }
+};
+
+#endif // defined(RGB_MATRIX_ENABLE)