mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix annoying array formatting --nobuild
This commit is contained in:
@@ -40,13 +40,27 @@ static const struct {
|
||||
char* name;
|
||||
RgbColor color;
|
||||
} lcd_colors[] = {
|
||||
{"Off", {0, 0, 0}}, {"Orange", {255, 69, 0}}, {"Red", {255, 0, 0}},
|
||||
{"Maroon", {128, 0, 0}}, {"Yellow", {255, 255, 0}}, {"Olive", {128, 128, 0}},
|
||||
{"Lime", {0, 255, 0}}, {"Green", {0, 128, 0}}, {"Aqua", {0, 255, 127}},
|
||||
{"Cyan", {0, 210, 210}}, {"Azure", {0, 127, 255}}, {"Teal", {0, 128, 128}},
|
||||
{"Blue", {0, 0, 255}}, {"Navy", {0, 0, 128}}, {"Purple", {128, 0, 128}},
|
||||
{"Fuchsia", {255, 0, 255}}, {"Pink", {173, 31, 173}}, {"Brown", {165, 42, 42}},
|
||||
// clang-format off
|
||||
{"Off", {0, 0, 0}},
|
||||
{"Orange", {255, 69, 0}},
|
||||
{"Red", {255, 0, 0}},
|
||||
{"Maroon", {128, 0, 0}},
|
||||
{"Yellow", {255, 255, 0}},
|
||||
{"Olive", {128, 128, 0}},
|
||||
{"Lime", {0, 255, 0}},
|
||||
{"Green", {0, 128, 0}},
|
||||
{"Aqua", {0, 255, 127}},
|
||||
{"Cyan", {0, 210, 210}},
|
||||
{"Azure", {0, 127, 255}},
|
||||
{"Teal", {0, 128, 128}},
|
||||
{"Blue", {0, 0, 255}},
|
||||
{"Navy", {0, 0, 128}},
|
||||
{"Purple", {128, 0, 128}},
|
||||
{"Fuchsia", {255, 0, 255}},
|
||||
{"Pink", {173, 31, 173}},
|
||||
{"Brown", {165, 42, 42}},
|
||||
{"White", {255, 192, 203}},
|
||||
// clang-format on
|
||||
};
|
||||
static const size_t lcd_sz = COUNT_OF(lcd_colors);
|
||||
static void momentum_app_scene_misc_screen_lcd_color_changed(VariableItem* item, uint8_t led) {
|
||||
|
||||
@@ -39,11 +39,27 @@ static const struct {
|
||||
char* name;
|
||||
Rgb565Color color;
|
||||
} vgm_colors[] = {
|
||||
{"Orange", {0xFC00}}, {"Black", {0x0000}}, {"Red", {0xF800}}, {"Maroon", {0x8000}},
|
||||
{"Yellow", {0xFFE0}}, {"Olive", {0x8400}}, {"Lime", {0x07E0}}, {"Green", {0x0400}},
|
||||
{"Aqua", {0x07EF}}, {"Cyan", {0x069A}}, {"Azure", {0x03FF}}, {"Teal", {0x0410}},
|
||||
{"Blue", {0x001F}}, {"Navy", {0x0010}}, {"Purple", {0x8010}}, {"Fuchsia", {0xF81F}},
|
||||
{"Pink", {0xA8F5}}, {"Brown", {0xA145}}, {"White", {0xFFFF}},
|
||||
// clang-format off
|
||||
{"Orange", {0xFC00}},
|
||||
{"Black", {0x0000}},
|
||||
{"Red", {0xF800}},
|
||||
{"Maroon", {0x8000}},
|
||||
{"Yellow", {0xFFE0}},
|
||||
{"Olive", {0x8400}},
|
||||
{"Lime", {0x07E0}},
|
||||
{"Green", {0x0400}},
|
||||
{"Aqua", {0x07EF}},
|
||||
{"Cyan", {0x069A}},
|
||||
{"Azure", {0x03FF}},
|
||||
{"Teal", {0x0410}},
|
||||
{"Blue", {0x001F}},
|
||||
{"Navy", {0x0010}},
|
||||
{"Purple", {0x8010}},
|
||||
{"Fuchsia", {0xF81F}},
|
||||
{"Pink", {0xA8F5}},
|
||||
{"Brown", {0xA145}},
|
||||
{"White", {0xFFFF}},
|
||||
// clang-format on
|
||||
};
|
||||
static const size_t vgm_colors_count = COUNT_OF(vgm_colors);
|
||||
static void momentum_app_scene_misc_vgm_foreground_changed(VariableItem* item) {
|
||||
|
||||
Reference in New Issue
Block a user