mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
udisplay option a3
This commit is contained in:
parent
835e7ab2e3
commit
4805f26649
@ -169,14 +169,14 @@ enum ProgramSelectablePins {
|
|||||||
GPIO_USER, // User configurable needs to be 2047
|
GPIO_USER, // User configurable needs to be 2047
|
||||||
GPIO_MAX };
|
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...
|
typedef union { // Restricted by MISRA-C Rule 18.4 but so useful...
|
||||||
uint32_t data; // Allow bit manipulation using SetOption
|
uint32_t data; // Allow bit manipulation using SetOption
|
||||||
struct { // GPIO Option_A1 .. Option_A32
|
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 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 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 spare03 : 1; // bit 3
|
||||||
uint32_t spare04 : 1; // bit 4
|
uint32_t spare04 : 1; // bit 4
|
||||||
uint32_t spare05 : 1; // bit 5
|
uint32_t spare05 : 1; // bit 5
|
||||||
|
@ -83,7 +83,7 @@ void Init_uDisp(void) {
|
|||||||
char *ddesc = 0;
|
char *ddesc = 0;
|
||||||
char *fbuff;
|
char *fbuff;
|
||||||
|
|
||||||
if (1) {
|
if (TasmotaGlobal.gpio_optiona.udisplay_driver) {
|
||||||
Settings.display_model = XDSP_17;
|
Settings.display_model = XDSP_17;
|
||||||
|
|
||||||
fg_color = 1;
|
fg_color = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user