mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
VGM/RPC: Rework custom colors, smoother config, better rainbow support (#53)
* first poc works * rainbow mode now works over rpc still not done refrash rate from flipper change and is slow so the rainbow mode doesnt look good * transmit VgmMode * use all the 32bit * some config stuff * sync apps * Change protobuf repo * Some lib naming changes and cleanup * Format protobuf * Update from RGB backlight if enabled * Remove old expansion toggling * Update settings UI * Fix searching previous value * VGM Tool: Add new RGB firmware * Update changelog * These are unused --------- Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com>
This commit is contained in:
@@ -70,57 +70,6 @@ void furi_hal_info_get(PropertyValueCallback out, char sep, void* context) {
|
||||
property_value_out(
|
||||
&property_context, "%d", 2, "hardware", "color", furi_hal_version_get_hw_color());
|
||||
|
||||
// RGB Settings
|
||||
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));
|
||||
|
||||
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
|
||||
property_value_out(
|
||||
&property_context,
|
||||
"%d",
|
||||
4,
|
||||
"hardware",
|
||||
"vgm",
|
||||
"color",
|
||||
"mode",
|
||||
momentum_settings.vgm_color_mode);
|
||||
property_value_out(
|
||||
&property_context,
|
||||
"%04X",
|
||||
4,
|
||||
"hardware",
|
||||
"vgm",
|
||||
"color",
|
||||
"fg",
|
||||
momentum_settings.vgm_color_fg.value);
|
||||
property_value_out(
|
||||
&property_context,
|
||||
"%04X",
|
||||
4,
|
||||
"hardware",
|
||||
"vgm",
|
||||
"color",
|
||||
"bg",
|
||||
momentum_settings.vgm_color_bg.value);
|
||||
|
||||
if(sep == '.') {
|
||||
property_value_out(
|
||||
&property_context,
|
||||
|
||||
Reference in New Issue
Block a user