mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 05:27:01 +03:00
add color swap BGR/RGB and generalize invert option
This commit is contained in:
@@ -464,6 +464,7 @@ const display_config_t * config_display_get(){
|
||||
.speed = 0,
|
||||
.rotate = false,
|
||||
.invert = false,
|
||||
.colorswap = 0,
|
||||
};
|
||||
char *config = config_alloc_get(NVS_TYPE_STR, "display_config");
|
||||
if (!config) {
|
||||
@@ -491,6 +492,7 @@ const display_config_t * config_display_get(){
|
||||
dstruct.vflip= strcasestr(config, "VFlip") ? true : false;
|
||||
dstruct.rotate= strcasestr(config, "rotate") ? true : false;
|
||||
dstruct.invert= strcasestr(config, "invert") ? true : false;
|
||||
dstruct.colorswap= strcasestr(config, "cswap") ? 1 : 0;
|
||||
return &dstruct;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ typedef struct {
|
||||
const char *type;
|
||||
bool rotate;
|
||||
bool invert;
|
||||
int colorswap;
|
||||
} display_config_t;
|
||||
|
||||
typedef struct eth_config_struct {
|
||||
|
||||
Reference in New Issue
Block a user