mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
36 lines
711 B
C
36 lines
711 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct {
|
|
//Common settings
|
|
uint8_t version;
|
|
uint8_t rgb_backlight_installed;
|
|
float brightness;
|
|
|
|
// static gradient mode settings
|
|
uint8_t led_2_color_index;
|
|
uint8_t led_1_color_index;
|
|
uint8_t led_0_color_index;
|
|
|
|
// rainbow mode setings
|
|
uint32_t rainbow_mode;
|
|
uint32_t rainbow_speed_ms;
|
|
uint16_t rainbow_step;
|
|
uint8_t rainbow_saturation;
|
|
uint8_t rainbow_wide;
|
|
|
|
} RGBBacklightSettings;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void rgb_backlight_settings_load(RGBBacklightSettings* settings);
|
|
void rgb_backlight_settings_save(const RGBBacklightSettings* settings);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|