mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Cosmetic code changes and removing unused parts.
This commit is contained in:
@@ -32,21 +32,65 @@ typedef struct {
|
||||
uint8_t rainbow_red;
|
||||
uint8_t rainbow_green;
|
||||
uint8_t rainbow_blue;
|
||||
|
||||
RGBBacklightSettings* settings;
|
||||
|
||||
} RGBBacklightApp;
|
||||
|
||||
#define RECORD_RGB_BACKLIGHT "rgb_backlight"
|
||||
|
||||
/** Update leds colors from current_led[i].color and selected bright
|
||||
*
|
||||
* @param brightness - Brightness 0..1
|
||||
* @return
|
||||
*/
|
||||
void rgb_backlight_update(float brightness);
|
||||
//not used now, for future use
|
||||
// void rgb_backlight_set_custom_color(uint8_t red, uint8_t green, uint8_t blue);
|
||||
|
||||
/** Set current_led[i].color for one led by static color index
|
||||
*
|
||||
* @param led - Led number (0..2)
|
||||
* @param index - Static color index number
|
||||
* @return
|
||||
*/
|
||||
void rgb_backlight_set_led_static_color(uint8_t led, uint8_t index);
|
||||
|
||||
/** Stop rainbow timer
|
||||
*
|
||||
* @param app - Instance of RGBBacklightApp from FURI RECORD
|
||||
* @return
|
||||
*/
|
||||
void rainbow_timer_stop(RGBBacklightApp* app);
|
||||
|
||||
/** Start rainbow timer
|
||||
*
|
||||
* @param app - Instance of RGBBacklightApp from FURI RECORD
|
||||
* @return
|
||||
*/
|
||||
|
||||
/** Start rainbow timer
|
||||
*
|
||||
* @param app - Instance of RGBBacklightApp from FURI RECORD
|
||||
* @return
|
||||
*/
|
||||
void rainbow_timer_start(RGBBacklightApp* app);
|
||||
|
||||
/** Start rainbow timer only if all conditions meet (rgb_backlight_installed && rainbow ON)
|
||||
*
|
||||
* @param app - Instance of RGBBacklightApp from FURI RECORD
|
||||
* @return
|
||||
*/
|
||||
void rainbow_timer_starter(RGBBacklightApp* app);
|
||||
|
||||
/** Get name of static color by index
|
||||
*
|
||||
* @param index - Static colors index number
|
||||
* @return - color name
|
||||
*/
|
||||
const char* rgb_backlight_get_color_text(uint8_t index);
|
||||
|
||||
/** Get static colors count
|
||||
*
|
||||
* @param
|
||||
* @return - colors count
|
||||
*/
|
||||
uint8_t rgb_backlight_get_color_count(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user