Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ESP8266_HVIO #953

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions sonoff/sonoff_template.h
Expand Up @@ -160,6 +160,7 @@ enum module_t {
WITTY,
YUNSHAN,
MAGICHOME,
ESP8266_HVIO,
MAXMODULE };

/********************************************************************************************/
Expand Down Expand Up @@ -206,6 +207,7 @@ const uint8_t nicelist[MAXMODULE] PROGMEM = {
WION,
H801,
MAGICHOME,
ESP8266_HVIO,
HUAFAN_SS,
AILIGHT,
WEMOS,
Expand Down Expand Up @@ -664,6 +666,21 @@ const mytmplt modules[MAXMODULE] PROGMEM = {
GPIO_USER, // GPIO13 RGBW LED White (optional - set to PWM4 for Cold White or Warm White)
GPIO_PWM1, // GPIO14 RGB LED Red
0, 0, 0
},
{ "ESP8266_HVIO", // ESP8266_HVIO - https://luani.de/projekte/esp8266-hvio/
0, // GPIO00 Flash jumper
GPIO_USER, // GPIO01 Serial RXD and Optional sensor
GPIO_USER, // GPIO02 Optional sensor / SDA pad
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
GPIO_REL1, // GPIO04 Relay 1 (0 = Off, 1 = On)
GPIO_REL2, // GPIO05 Relay 2 (0 = Off, 1 = On)
0, 0, 0, 0, 0, 0, // Flash connection
GPIO_SWT1, // GPIO12 External input 1 (0 = On, 1 = Off)
GPIO_SWT2, // GPIO13 External input 2 (0 = On, 1 = Off)
GPIO_USER, // GPIO14 Optional sensor / SCL pad
GPIO_LED1, // GPIO15 Led (1 = On, 0 = Off)
0, // GPIO16
GPIO_ADC0 // ADC0 A0 Analog input
}
};