feat(bw128): add customisable switches edit page, allow editing custom colors (#5799)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user