qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

rgb_stuff.h (794B)


      1 #pragma once
      2 #include "quantum.h"
      3 #ifdef RGB_MATRIX_ENABLE
      4 #    include "rgb_matrix.h"
      5 #endif
      6 
      7 typedef struct {
      8     bool     enabled;
      9     uint8_t  hue;
     10     uint16_t timer;
     11     uint8_t  life;
     12 } rgblight_fadeout;
     13 
     14 bool          process_record_user_rgb(uint16_t keycode, keyrecord_t *record);
     15 void          scan_rgblight_fadeout(void);
     16 void          keyboard_post_init_rgb(void);
     17 void          matrix_scan_rgb(void);
     18 layer_state_t layer_state_set_rgb(layer_state_t state);
     19 layer_state_t default_layer_state_set_rgb(layer_state_t state);
     20 void          rgblight_sethsv_default_helper(uint8_t index);
     21 void          rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue);
     22 
     23 void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode, uint8_t speed, uint8_t led_type);