mirror of https://github.com/arendst/Tasmota.git
Add Sonoff B1 b using different pins
This commit is contained in:
parent
941deba815
commit
700e51b091
|
@ -1,4 +1,4 @@
|
|||
/* 5.5.2d
|
||||
/* 5.5.2e
|
||||
* Fix Sonoff Pow intermittent exception 0
|
||||
* Change Sonoff Pow sending Domoticz telemetry data only
|
||||
* Add Sonoff B1 support (experimental)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
- Select IDE Tools - Flash Size: "1M (no SPIFFS)"
|
||||
====================================================*/
|
||||
|
||||
#define VERSION 0x05050204 // 5.5.2d
|
||||
#define VERSION 0x05050205 // 5.5.2e
|
||||
|
||||
enum log_t {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL};
|
||||
enum week_t {Last, First, Second, Third, Fourth};
|
||||
|
@ -2633,7 +2633,7 @@ void GPIO_init()
|
|||
else if (SONOFF_LED == sysCfg.module) {
|
||||
sfl_flg = 2;
|
||||
}
|
||||
else if (SONOFF_B1 == sysCfg.module) {
|
||||
else if ((SONOFF_B1 == sysCfg.module) || (SONOFF_B1b == sysCfg.module)) {
|
||||
sfl_flg = 5;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -152,6 +152,7 @@ enum module_t {
|
|||
HUAFAN_SS,
|
||||
SONOFF_BRIDGE,
|
||||
SONOFF_B1,
|
||||
SONOFF_B1b,
|
||||
MAXMODULE };
|
||||
|
||||
/********************************************************************************************/
|
||||
|
@ -507,7 +508,22 @@ const mytmplt modules[MAXMODULE] PROGMEM = {
|
|||
GPIO_DCKI, // GPIO14 my9231 DCKI
|
||||
0,
|
||||
0, 0
|
||||
},
|
||||
{ "Sonoff B1 b", // Sonoff B1 (ESP8285 - my9231)
|
||||
GPIO_KEY1, // GPIO00 Pad
|
||||
GPIO_USER, // GPIO01 Serial RXD and Optional sensor pad
|
||||
GPIO_USER, // GPIO02 Optional sensor SDA pad
|
||||
GPIO_USER, // GPIO03 Serial TXD and Optional sensor pad
|
||||
0, 0,
|
||||
0, 0, 0, // Flash connection
|
||||
0, 0,
|
||||
0, // Flash connection
|
||||
0,
|
||||
GPIO_DI, // GPIO13 my9231 DI
|
||||
0,
|
||||
GPIO_DCKI, // GPIO15 my9231 DCKI
|
||||
0, 0
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue