Expose rgb_matrix_update_pwm_buffers to be available in keymaps (#24573)

* Expose rgb_matrix_update_pwm_buffers to be available in keymaps

Exposing this API enables the examples in the keyboard shutdown/reboot
documentation to compile instead of calling `rgb_matrix_driver.flush`
directly.

* Remove extraneous rgb_matrix_update_pwm_buffers prototype declarations

Now that `rgb_matrix_update_pwm_buffers` is public, there isn't the need
for local prototype declarations.
This commit is contained in:
Eric N. Vander Weele 2024-11-08 01:12:59 -05:00 committed by GitHub
parent b17322b9b8
commit 9523ed9e32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 3 deletions

View file

@ -165,7 +165,6 @@ uint32_t loop_10Hz(uint32_t trigger_time, void *cb_arg) {
wait_ms(50);
eeconfig_init();
#ifdef RGB_MATRIX_ENABLE
extern void rgb_matrix_update_pwm_buffers(void);
for(int i = 0; i < 5; i++) {
rgb_matrix_set_color_all(RGB_WHITE);
rgb_matrix_update_pwm_buffers();