fix some compile issue & add TAS5713

This commit is contained in:
Philippe G
2020-08-03 13:19:47 -07:00
parent 0865496d76
commit 05e3c59a46
8 changed files with 48 additions and 65 deletions

View File

@@ -71,6 +71,7 @@ const display_config_t * config_display_get(){
if ((p = strcasestr(config, "speed")) != NULL) dstruct.speed = atoi(strchr(p, '=') + 1);
dstruct.hflip= strcasestr(config, "HFlip") ? true : false;
dstruct.vflip= strcasestr(config, "VFlip") ? true : false;
dstruct.rotate= strcasestr(config, "rotate") ? true : false;
return &dstruct;
}

View File

@@ -23,6 +23,7 @@ typedef struct {
char *type;
bool hflip;
bool vflip;
bool rotate;
} display_config_t;
const display_config_t * config_display_get();
esp_err_t config_i2c_set(const i2c_config_t * config, int port);