udisplay option a3

This commit is contained in:
gemu2015 2021-04-11 15:16:40 +02:00
parent 835e7ab2e3
commit 4805f26649
2 changed files with 3 additions and 3 deletions

View File

@ -169,14 +169,14 @@ enum ProgramSelectablePins {
GPIO_USER, // User configurable needs to be 2047
GPIO_MAX };
#define MAX_OPTIONS_A 2 // Increase if more bits are used from GpioOptionABits
#define MAX_OPTIONS_A 3 // Increase if more bits are used from GpioOptionABits
typedef union { // Restricted by MISRA-C Rule 18.4 but so useful...
uint32_t data; // Allow bit manipulation using SetOption
struct { // GPIO Option_A1 .. Option_A32
uint32_t pwm1_input : 1; // bit 0 (v9.2.0.1) - Option_A1 - (Light) Change PWM1 to input on power off and no fade running (1)
uint32_t dummy_energy : 1; // bit 1 (v9.3.1.2) - Option_A2 - (Energy) Enable dummy values
uint32_t spare02 : 1; // bit 2
uint32_t udisplay_driver : 1; // bit 2 Universal display driver
uint32_t spare03 : 1; // bit 3
uint32_t spare04 : 1; // bit 4
uint32_t spare05 : 1; // bit 5

View File

@ -83,7 +83,7 @@ void Init_uDisp(void) {
char *ddesc = 0;
char *fbuff;
if (1) {
if (TasmotaGlobal.gpio_optiona.udisplay_driver) {
Settings.display_model = XDSP_17;
fg_color = 1;