cleanup
This commit is contained in:
parent
99d598e05d
commit
458077442a
1 changed files with 17 additions and 35 deletions
|
@ -101,15 +101,23 @@ struct Config_WiFi {
|
|||
*/
|
||||
|
||||
struct Config_System_Output {
|
||||
//byte type;
|
||||
//char name[32] = "lol";
|
||||
//byte gpio = 15;
|
||||
//bool gpio_invert;
|
||||
//bool gpio_pwm;
|
||||
//char i2c[8];
|
||||
//byte ip[4];
|
||||
//char ip_path[32];
|
||||
//bool enabled;
|
||||
|
||||
/*
|
||||
* Config System Outputs
|
||||
*
|
||||
* - output_type: output type like GPIO, I2C, URL
|
||||
* 1 - GPIO
|
||||
* 2 - I2C
|
||||
* 3 - URL
|
||||
* - gpio: which gpio is used
|
||||
* - gpio_invert: invert gpio output
|
||||
* - gpio_pwm: enable pwm for output
|
||||
* - i2c:
|
||||
* - ip: ip to smart plug (tasmota e.g.)
|
||||
* - ip_path: uri path
|
||||
* - enabled: enable output
|
||||
*
|
||||
*/
|
||||
byte type[Max_Outputs];
|
||||
char name[Max_Outputs][32];
|
||||
byte gpio[Max_Outputs];
|
||||
|
@ -130,32 +138,6 @@ struct Config_System {
|
|||
char httpPass[32];
|
||||
bool httpLogSerial;
|
||||
unsigned short schedulerInterval = 1000;
|
||||
|
||||
/*
|
||||
* Config System Outputs
|
||||
*
|
||||
* - output_type: output type like GPIO, I2C, URL
|
||||
* 1 - GPIO
|
||||
* 2 - I2C
|
||||
* 3 - URL
|
||||
* - output_gpio: which gpio is used
|
||||
* - output_gpio_invert: invert gpio output
|
||||
* - output_gpio_pwm: enable pwm for output
|
||||
* - output_i2c:
|
||||
* - output_ip: ip to smart plug (tasmota e.g.)
|
||||
* - output_ip_path: uri path
|
||||
* - output_enabled: enable output
|
||||
*
|
||||
*/
|
||||
// byte output_type[Max_Outputs];
|
||||
// char output_name[Max_Outputs][32];
|
||||
// byte output_gpio[Max_Outputs];
|
||||
// bool output_gpio_invert[Max_Outputs];
|
||||
// bool output_gpio_pwm[Max_Outputs];
|
||||
// char output_i2c[Max_Outputs][8];
|
||||
// byte output_ip[Max_Outputs][4];
|
||||
// char output_ip_path[Max_Outputs][32];
|
||||
// bool output_enabled[Max_Outputs];
|
||||
Config_System_Output output;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue