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

Add Joywell 5ch power strip #3216

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion sonoff/sonoff_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ enum SupportedModules {
SONOFF_POW_R2,
SONOFF_IFAN02,
BLITZWOLF_BWSHP2,
JOYWELL_5CH,
MAXMODULE };

/********************************************************************************************/
Expand Down Expand Up @@ -243,6 +244,7 @@ const uint8_t kNiceList[MAXMODULE] PROGMEM = {
SONOFF_BN,
SONOFF_IFAN02,
SONOFF_BRIDGE,
JOYWELL_5CH,
CH1,
CH4,
MOTOR,
Expand Down Expand Up @@ -884,6 +886,21 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
GPIO_HLW_CF1, // GPIO14 BL0937 or HJL-01 CF1 voltage / current
GPIO_REL1, // GPIO15 Relay (0 = Off, 1 = On)
0, 0
},
{ "Joywell 5ch", // Joywell power strip (ESP8285)
0, // GPIO00 (D0)
GPIO_LED1_INV, // GPIO01 (D7)
0, // GPIO02 (D2)
GPIO_KEY1, // GPIO03 (D8)
GPIO_REL2, // GPIO04 (D4)
GPIO_REL1, // GPIO05 (D5)
0, 0, 0, 0, 0, 0, // Flash connection
GPIO_REL3, // GPIO12 (D12)
GPIO_REL4, // GPIO13 (D13)
GPIO_REL5, // GPIO14 (D14)
0, // GPIO15 (D15)
0, // GPIO16 (D16)
0 // ADC0 Analog input (A0)
}
};

Expand Down Expand Up @@ -970,4 +987,4 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {

*/

#endif // _SONOFF_TEMPLATE_H_
#endif // _SONOFF_TEMPLATE_H_