feat(bw128): add customisable switches edit page, allow editing custom colors (#5799)

This commit is contained in:
philmoz
2025-01-20 10:13:40 +10:00
committed by GitHub
parent a83b5cdb7b
commit a3c0e0a007
4 changed files with 171 additions and 154 deletions
+1 -3
View File
@@ -21,11 +21,9 @@
#pragma once
#include <stdint.h>
// MUST match TR_FS_COLOR_LIST (except 'Custom') - Custom gets display when none previous match
// MUST match TR_FS_COLOR_LIST (except 'Custom') - Custom gets displayed when none match
// "Off", "White", "Red", "Green", "Yellow", "Orange", "Blue", "Pink"
constexpr uint32_t colorTable[] = {0x000000, 0xFFFFFF, 0xFF0000, 0x00FF00, 0xFFFF00, 0xFF4000, 0x0000FF, 0xFF00FF};
// Alternate table for matching original RGB 565 converted values
constexpr uint32_t colorTabl2[] = {0x000000, 0xF8F8F8, 0xF80000, 0x00F800, 0xF8F800, 0xF84000, 0x0000F8, 0xF800F8};
void setFSLedOFF(uint8_t index);
void setFSLedON(uint8_t index);