Skip to content

Commit

Permalink
// standardize rgbmatrix indicator defines
Browse files Browse the repository at this point in the history
  • Loading branch information
plodah committed Aug 21, 2024
1 parent 58cd0fd commit f196380
Show file tree
Hide file tree
Showing 14 changed files with 207 additions and 9 deletions.
9 changes: 9 additions & 0 deletions keyboards/keychron/q10/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
# include "configs/rgbmatrix-effects-none.h"
Expand Down
10 changes: 10 additions & 0 deletions keyboards/keychron/q10/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,23 @@
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 1

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
# undef DYNAMIC_KEYMAP_LAYER_COUNT
#endif
#define DYNAMIC_KEYMAP_LAYER_COUNT 4

#if defined (DIP_SWITCH_ENABLE) && defined (PLODAH_BORING_LAYER)
# define dip_switch_update_kb plodah_dip_switch_update_kb
#endif //DIP_SWITCH_ENABLE
Expand Down
18 changes: 18 additions & 0 deletions keyboards/keychron/q1v1/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,29 @@
#define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_INDEX1 15
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
# include "configs/rgbmatrix-effects-none.h"
Expand Down
18 changes: 18 additions & 0 deletions keyboards/keychron/q1v1/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,29 @@
#define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_INDEX1 15
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0

Expand Down
18 changes: 18 additions & 0 deletions keyboards/keychron/q3/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,29 @@
#define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_INDEX1 16
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
# include "configs/rgbmatrix-effects-none.h"
Expand Down
19 changes: 19 additions & 0 deletions keyboards/keychron/q3/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,37 @@
#define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_INDEX1 16
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
# undef DYNAMIC_KEYMAP_LAYER_COUNT
#endif
#define DYNAMIC_KEYMAP_LAYER_COUNT 5

#if defined (DIP_SWITCH_ENABLE) && defined (PLODAH_BORING_LAYER)
# define dip_switch_update_kb plodah_dip_switch_update_kb
#endif //DIP_SWITCH_ENABLE
Expand Down
10 changes: 8 additions & 2 deletions keyboards/keychron/q8/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#define PLODAH_DMAC_INDIC_INDEX 28
// #define PLODAH_DMAC_INDIC_RGB RGB_RED
#ifdef DYNAMIC_MACRO_ENABLE
# define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
Expand Down
10 changes: 8 additions & 2 deletions keyboards/keychron/q8/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#define PLODAH_DMAC_INDIC_INDEX 28
// #define PLODAH_DMAC_INDIC_RGB RGB_RED
#ifdef DYNAMIC_MACRO_ENABLE
# define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0
Expand Down
18 changes: 18 additions & 0 deletions keyboards/keychron/q9/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,29 @@
// #define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_GRVINDEX 0
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
# include "configs/rgbmatrix-effects-none.h"
Expand Down
23 changes: 21 additions & 2 deletions keyboards/keychron/q9/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,37 @@
// #define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA
#define PLODAH_LAYER_INDIC_INDEX1 0

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_GRVINDEX 0
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
#undef DYNAMIC_KEYMAP_LAYER_COUNT
# undef DYNAMIC_KEYMAP_LAYER_COUNT
#endif
#define DYNAMIC_KEYMAP_LAYER_COUNT 4

#if defined (DIP_SWITCH_ENABLE) && defined (PLODAH_BORING_LAYER)
# define dip_switch_update_kb plodah_dip_switch_update_kb
#endif //DIP_SWITCH_ENABLE
Expand Down
9 changes: 9 additions & 0 deletions keyboards/keychron/v2/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
# define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

#define PLODAH_TYPINGINDICATOR_RGBINDEX 43
#define PLODAH_TYPINGINDICATOR_RGBCOLOR RGB_MAGENTA
#define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
# include "configs/rgbmatrix-effects-none.h"
Expand Down
17 changes: 14 additions & 3 deletions keyboards/keychron/v2/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include "plodah.h"

#define PLODAH_KNOB_ENHANCEMENTS_ENABLE
#define PLODAH_BORING_LAYER 1
Expand All @@ -18,13 +19,23 @@
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
# undef DYNAMIC_KEYMAP_LAYER_COUNT
#ifdef DYNAMIC_MACRO_ENABLE
# define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif
#define DYNAMIC_KEYMAP_LAYER_COUNT 5

#define PLODAH_TYPINGINDICATOR_RGBINDEX 43
#define PLODAH_TYPINGINDICATOR_RGBCOLOR RGB_MAGENTA
#define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
# undef DYNAMIC_KEYMAP_LAYER_COUNT
#endif
#define DYNAMIC_KEYMAP_LAYER_COUNT 4

#if defined (DIP_SWITCH_ENABLE) && defined (PLODAH_BORING_LAYER)
# define dip_switch_update_kb plodah_dip_switch_update_kb
#endif //DIP_SWITCH_ENABLE
Expand Down
18 changes: 18 additions & 0 deletions keyboards/keychron/v6/iso_encoder/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,29 @@
#define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_INDEX1 20
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

/* ------- RGB MATRIX ------- */
#ifdef RGB_MATRIX_ENABLE
# include "configs/rgbmatrix-effects-none.h"
Expand Down
19 changes: 19 additions & 0 deletions keyboards/keychron/v6/iso_encoder/keymaps/plodahc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,37 @@
#define PLODAH_BORING_LAYER 1

#define PLODAH_CAPS_INDIC_RGB RGB_MAGENTA

// #define PLODAH_MODS_INDIC_LALT_INDEX 61
// #define PLODAH_MODS_INDIC_LCTL_INDEX 59
// #define PLODAH_MODS_INDIC_LSHIFT_INDEX 44
// #define PLODAH_MODS_INDIC_RALT_INDEX 66
// #define PLODAH_MODS_INDIC_RCTL_INDEX 66
// #define PLODAH_MODS_INDIC_RSHIFT_INDEX 57
// #define PLODAH_MODS_INDIC_RGB 0xAB, 0xAB, 0xFF

#define PLODAH_LAYER_INDIC_INDEX1 20
#define PLODAH_LAYER_INDIC_RGB RGB_MAGENTA
// #define PLODAH_LAYER_INDIC_ONZERO
// #define PLODAH_LAYER_INDIC_BG_RGB RGB_ORANGE

#ifdef DYNAMIC_MACRO_ENABLE
// # define PLODAH_DMAC_INDIC_INDEX 28
// # define PLODAH_DMAC_INDIC_RGB RGB_RED
#endif

// #define PLODAH_TYPINGINDICATOR_RGBINDEX 43
// #define PLODAH_TYPINGINDICATOR_RGBCOLOR 0xAB, 0xAB, 0xFF
// #define PLODAH_TYPINGINDICATOR_DURATION 600

#define BOOTMAGIC_ROW 0
#define BOOTMAGIC_COLUMN 0

#ifdef DYNAMIC_KEYMAP_LAYER_COUNT
# undef DYNAMIC_KEYMAP_LAYER_COUNT
#endif
#define DYNAMIC_KEYMAP_LAYER_COUNT 5

#if defined (DIP_SWITCH_ENABLE) && defined (PLODAH_BORING_LAYER)
# define dip_switch_update_kb plodah_dip_switch_update_kb
#endif //DIP_SWITCH_ENABLE
Expand Down

0 comments on commit f196380

Please sign in to comment.