mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Tidy up RGB screen property info
This commit is contained in:
@@ -72,18 +72,25 @@ void furi_hal_info_get(PropertyValueCallback out, char sep, void* context) {
|
||||
&property_context, "%d", 2, "hardware", "color", furi_hal_version_get_hw_color());
|
||||
|
||||
// RGB Settings
|
||||
property_value_out(&property_context, "%d", 3, "hardware", "rgb", "enabled", momentum_settings.rgb_backlight);
|
||||
|
||||
for(int i = 0; i < SK6805_get_led_count(); i++){
|
||||
property_value_out(
|
||||
&property_context,
|
||||
"%d",
|
||||
4,
|
||||
"hardware",
|
||||
"screen",
|
||||
"rgb",
|
||||
"enabled",
|
||||
momentum_settings.rgb_backlight);
|
||||
for(int i = 0; i < SK6805_get_led_count(); i++) {
|
||||
RgbColor rgb;
|
||||
rgb_backlight_get_color(i, &rgb);
|
||||
|
||||
uint32_t led_value = 0;
|
||||
memcpy(((void *)&led_value) + 1, &rgb, sizeof(RgbColor));
|
||||
memcpy(((void*)&led_value) + 1, &rgb, sizeof(RgbColor));
|
||||
|
||||
char id_string[2] = {'0'+i, '\0'};
|
||||
|
||||
property_value_out(&property_context, "%06X", 4, "hardware", "rgb", "led", id_string, __REV(led_value));
|
||||
char led_string[5] = {'l', 'e', 'd', '0' + i, '\0'};
|
||||
property_value_out(
|
||||
&property_context, "%06X", 4, "hardware", "screen", "rgb", led_string, __REV(led_value));
|
||||
}
|
||||
|
||||
// VGM Settings
|
||||
|
||||
Reference in New Issue
Block a user