From 458077442ad9ad6d0b2fc9b50fa5a436616221ea Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 24 Oct 2024 02:54:18 +0200 Subject: [PATCH] cleanup --- Arduino/CanGrow/include/CanGrow.h | 52 ++++++++++--------------------- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/Arduino/CanGrow/include/CanGrow.h b/Arduino/CanGrow/include/CanGrow.h index d05ef6c..9850e7a 100644 --- a/Arduino/CanGrow/include/CanGrow.h +++ b/Arduino/CanGrow/include/CanGrow.h @@ -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; };