Skip to content

Commit

Permalink
sn32 rgb driver: cleanup ROW2COL i/o
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 committed Sep 13, 2024
1 parent 023d7a2 commit 93db451
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/led/sn32f2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static void shared_matrix_rgb_disable_output(void) {
gpio_set_pin_input(led_col_pins[x]);
# endif // DIODE_DIRECTION != SN32_PWM_DIRECTION
// Unselect all columns before scanning the key matrix
# if (SN32_RGB_OUTPUT_ACTIVE_LEVEL == SN32_RGB_OUTPUT_ACTIVE_LOW || defined(MATRIX_UNSELECT_DRIVE_HIGH))
# if (SN32_RGB_OUTPUT_ACTIVE_LEVEL == SN32_RGB_OUTPUT_ACTIVE_LOW)
gpio_write_pin_high(led_col_pins[x]);
# elif (SN32_RGB_OUTPUT_ACTIVE_LEVEL == SN32_RGB_OUTPUT_ACTIVE_HIGH)
gpio_write_pin_low(led_col_pins[x]);
Expand Down Expand Up @@ -493,10 +493,6 @@ static void update_pwm_channels(PWMDriver *pwmp) {
# if (DIODE_DIRECTION != SN32_PWM_DIRECTION)
gpio_set_pin_output_push_pull(led_col_pins[x]);
# endif // DIODE_DIRECTION != SN32_PWM_DIRECTION
// Disable all RGB columns before turning on PWM in case matrix read unselect high
# if (SN32_RGB_OUTPUT_ACTIVE_LEVEL == SN32_RGB_OUTPUT_ACTIVE_HIGH && defined(MATRIX_UNSELECT_DRIVE_HIGH))
gpio_write_pin_low(led_col_pins[x]);
# endif // SN32_RGB_OUTPUT_ACTIVE_LEVEL == SN32_RGB_OUTPUT_ACTIVE_HIGH && defined(MATRIX_UNSELECT_DRIVE_HIGH)
}

bool enable_pwm_output = false;
Expand Down

0 comments on commit 93db451

Please sign in to comment.