mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Still in progress
This commit is contained in:
@@ -17,23 +17,28 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <furi.h>
|
||||
#include "rgb_backlight_settings.h"
|
||||
#include "SK6805.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
char* name;
|
||||
uint8_t red;
|
||||
uint8_t green;
|
||||
uint8_t blue;
|
||||
} RGBBacklightStaticColor;
|
||||
} RGBBacklightPredefinedColor;
|
||||
|
||||
typedef struct {
|
||||
FuriTimer* rainbow_timer;
|
||||
|
||||
int16_t rainbow_red;
|
||||
int16_t rainbow_green;
|
||||
int16_t rainbow_blue;
|
||||
int16_t current_red;
|
||||
int16_t current_green;
|
||||
int16_t current_blue;
|
||||
uint8_t rainbow_stage;
|
||||
|
||||
RGBBacklightSettings* settings;
|
||||
@@ -42,3 +47,14 @@ typedef struct {
|
||||
|
||||
#define RECORD_RGB_BACKLIGHT "rgb_backlight"
|
||||
|
||||
void rgb_backlight_update (float brightness);
|
||||
void rgb_backlight_set_static_color(uint8_t index, float brightness);
|
||||
void rainbow_timer_stop(RGBBacklightApp* app);
|
||||
void rainbow_timer_start(RGBBacklightApp* app);
|
||||
void rainbow_timer_starter(RGBBacklightApp* app);
|
||||
const char* rgb_backlight_get_color_text(uint8_t index);
|
||||
uint8_t rgb_backlight_get_color_count(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user