Files
Momentum-Firmware/applications/services/rgb_backlight/rgb_backlight_settings.h
Dmitry422 5eb38b786b RGB BACKLIGHT refactoring finished.
- rgb_backlight by @Quen0n
- rgb_backlight_settings and effects (like rainbow) idea by @Willy-JL

For access to rgb backlight settings enable Debug mode and go to Settings-LCD and Notification-RGB backlight
2025-03-19 18:53:02 +07:00

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