Skip to content

Commit

Permalink
Merge pull request #1 from SonixQMK/sn32_master_openrgb
Browse files Browse the repository at this point in the history
Sn32 master openrgb
  • Loading branch information
willersonsp authored Nov 20, 2023
2 parents d1adcae + e0d4f50 commit 3c34d71
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 9 additions & 1 deletion drivers/led/sn32/led_matrix_sn32f26x.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ void led_ch_ctrl(void) {
chan_col_order[i] = 19;
break;

case D4:
chan_col_order[i] = 20;
break;

case D5:
chan_col_order[i] = 21;
break;
Expand Down Expand Up @@ -260,8 +264,12 @@ static const PWMConfig pwmcfg = {
[19] = {.mode = PWM_OUTPUT_ACTIVE_LOW},
#else
[19] = {.mode = PWM_OUTPUT_DISABLED},
#endif /* Channel 20 is a dummy channel in 26x .*/
#endif
#ifdef ACTIVATE_PWM_CHAN_20
[20] = {.mode = PWM_OUTPUT_ACTIVE_LOW},
#else
[20] = {.mode = PWM_OUTPUT_DISABLED},
#endif
#ifdef ACTIVATE_PWM_CHAN_21
[21] = {.mode = PWM_OUTPUT_ACTIVE_LOW},
#else
Expand Down
12 changes: 6 additions & 6 deletions keyboards/keychron/c2/rgb/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
enum layer_names {
WIN_BASE = 0,
WIN_FN = 1,
MAC_BASE = 2,
MAC_FN = 3,
MAC_BASE = 0,
MAC_FN = 1,
WIN_BASE = 2,
WIN_FN = 3,
};

#define KC_TASK LGUI(KC_TAB) // Task viewer
Expand Down Expand Up @@ -62,7 +62,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
{ 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_P7, KC_P8, KC_P9, KC_PPLS },
{ 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_NO, KC_ENT, KC_NO, KC_NO, KC_NO, KC_P4, KC_P5, KC_P6, KC_NO },
{ KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NO, KC_RSFT, KC_NO, KC_UP, KC_NO, KC_P1, KC_P2, KC_P3, KC_PENT },
{ KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_NO, KC_SPC, KC_NO, KC_NO, KC_RALT, KC_RGUI, MO(1), KC_NO, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_P0, KC_PDOT, KC_NO }
{ KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_NO, KC_SPC, KC_NO, KC_NO, KC_RALT, KC_RGUI, MO(3), KC_NO, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_P0, KC_PDOT, KC_NO }
},

[WIN_FN] = { // Windows Fn overlay
Expand Down Expand Up @@ -100,7 +100,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
{ 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_P7, KC_P8, KC_P9, KC_PPLS },
{ 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_NO, KC_ENT, KC_NO, KC_NO, KC_NO, KC_P4, KC_P5, KC_P6, KC_NO },
{ KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NO, KC_RSFT, KC_NO, KC_UP, KC_NO, KC_P1, KC_P2, KC_P3, KC_PENT },
{ KC_LCTL, KC_LALT, KC_LGUI, KC_NO, KC_NO, KC_NO, KC_SPC, KC_NO, KC_NO, KC_RGUI, KC_RALT, MO(3), KC_NO, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_P0, KC_PDOT, KC_NO }
{ KC_LCTL, KC_LALT, KC_LGUI, KC_NO, KC_NO, KC_NO, KC_SPC, KC_NO, KC_NO, KC_RGUI, KC_RALT, MO(1), KC_NO, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_P0, KC_PDOT, KC_NO }
},

[MAC_FN] = { // Mac Fn overlay
Expand Down

0 comments on commit 3c34d71

Please sign in to comment.