qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

rgblight_drivers.h (384B)


      1 // Copyright 2023 QMK
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #pragma once
      5 
      6 #include <stdint.h>
      7 
      8 typedef struct {
      9     void (*init)(void);
     10     void (*set_color)(int index, uint8_t red, uint8_t green, uint8_t blue);
     11     void (*set_color_all)(uint8_t red, uint8_t green, uint8_t blue);
     12     void (*flush)(void);
     13 } rgblight_driver_t;
     14 
     15 extern const rgblight_driver_t rgblight_driver;