fix(bw): customisable switch LED color text sometimes incorrect on GX12 (#5776)
This commit is contained in:
@@ -22,8 +22,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
// MUST match TR_FS_COLOR_LIST ( "White", "Red", "Green", "Yellow", "Orange", "Blue", "Pink", "Off", Custom gets display when none previous match
|
||||
constexpr uint32_t colorTable[] = {0xF8F8F8, 0xF80000, 0x00F800, 0xF8F800, 0xF84000, 0x0000F8, 0xF800F8, 0x000000};
|
||||
// MUST match TR_FS_COLOR_LIST (except 'Custom') - Custom gets display when none previous 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