Advertisement
Guest User

rgb_matrix_custom.c

a guest
Feb 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1. #include "rgb_matrix.h"
  2.  
  3. /*---------------------------------  Export  ---------------------------------*/
  4.  
  5. static void rgb_matrix_pure_white(uint16_t led_i, bool init) {
  6.   rgb_matrix_set_color(led_i, 0xff, 0xff, 0xff);
  7. }
  8.  
  9. /*---------------------------------  Export  ---------------------------------*/
  10.  
  11. static const rgb_matrix_custom_mode_f custom_modes[] = {
  12.     rgb_matrix_pure_white,
  13. };
  14.  
  15. // override null-defns in rgb_matrix.c
  16. const rgb_matrix_custom_mode_f* rgb_matrix_custom_modes = custom_modes;
  17. const uint8_t rgb_matrix_custom_modes_count = sizeof(custom_modes) / sizeof(custom_modes[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement