Skip to content

Commit

Permalink
circumvent stupid hardware decisions
Browse files Browse the repository at this point in the history
thanks evision
  • Loading branch information
dexter93 committed Dec 14, 2022
1 parent 59a64c7 commit 35f5000
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/led/sn32/rgb_matrix_sn32f24xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,16 @@ static void update_pwm_channels(PWMDriver *pwmp) {
switch (current_row % LED_MATRIX_ROW_CHANNELS) {
case 0:
led_duty_cycle[current_key_col] = led_state[led_index].r;
#if defined(EVISION_BOTCHED_RED_CHANNEL) // some keyboards have a 151k resistor value tied to the R channel instead of a 10k, as the rest.
/* Boost the output for that channel maximizing the current draw by disabling other sinks */
#if (RGB_OUTPUT_ACTIVE_LEVEL == RGB_OUTPUT_ACTIVE_HIGH)
writePinLow(current_row +1);
writePinLow(current_row +2);
#elif (RGB_OUTPUT_ACTIVE_LEVEL == RGB_OUTPUT_ACTIVE_HIGH)
writePinHigh(current_row +1);
writePinHigh(current_row +2);
#endif
#endif
break;
case 1:
led_duty_cycle[current_key_col] = led_state[led_index].b;
Expand Down

0 comments on commit 35f5000

Please sign in to comment.