diff --git a/README.md b/README.md index 71f2ac5e..d71a96e9 100644 --- a/README.md +++ b/README.md @@ -248,14 +248,14 @@ Here is the list of supported hardware. For more information please refer to the |||| |---|---|---| -|![BlitzWolf BW-SHP6](images/devices/blitzwolf-bw-shp6.jpg)|![BlitzWolf BW-SHP2](images/devices/blitzwolf-bw-shp2.jpg)|![Power meters based on V9261F](images/devices/generic-v9261f.jpg)| -|**Blitzwolf BW-SHP6**|**Blitzwolf BW-SHP2
(also by Coosa, Gosund, HomeCube, Teckin)**|**Power meters based on V9261F**| -|![Itead Sonoff POW](images/devices/itead-sonoff-pow.jpg)|![Itead Sonoff POW](images/devices/itead-sonoff-pow-r2.jpg)|![Itead Sonoff S31](images/devices/itead-sonoff-s31.jpg)| -|**Itead Sonoff POW**|**Itead Sonoff POW R2**|**Itead Sonoff S31**| -|![Smartlife Mini Smart Socket](images/devices/smartlife-mini-smart-socket.jpg)|![Teckin SP20](images/devices/teckin-sp20.jpg)|![Digoo NX SP202](images/devices/digoo-nx-sp202.jpg)| -|**Smartlife (NETVIP) Mini Smart Socket**|**Teckin SP20**|**Digoo NX SP202**| -|![Vanzavanzu Smart WiFi Plug Mini](images/devices/vanzavanzu-smart-wifi-plug-mini.jpg)||| -|**Vanzavanzu Smart WiFi Plug Mini**||| +|![BlitzWolf BW-SHP6](images/devices/blitzwolf-bw-shp6.jpg)|![BlitzWolf BW-SHP2](images/devices/blitzwolf-bw-shp2.jpg)|![BlitzWolf BW-SHP5](images/devices/blitzwolf-bw-shp5.jpg)| +|**Blitzwolf BW-SHP6**|**Blitzwolf BW-SHP2
(also by Coosa, Gosund, HomeCube, Teckin)**|**Blitzwolf BW-SHP5**| +|![Power meters based on V9261F](images/devices/generic-v9261f.jpg)|![Itead Sonoff POW](images/devices/itead-sonoff-pow.jpg)|![Itead Sonoff POW](images/devices/itead-sonoff-pow-r2.jpg)| +|**Power meters based on V9261F**|**Itead Sonoff POW**|**Itead Sonoff POW R2**| +|![Itead Sonoff S31](images/devices/itead-sonoff-s31.jpg)|![Smartlife Mini Smart Socket](images/devices/smartlife-mini-smart-socket.jpg)|![Teckin SP20](images/devices/teckin-sp20.jpg)| +|**Itead Sonoff S31**|**Smartlife (NETVIP) Mini Smart Socket**|**Teckin SP20**| +|![Digoo NX SP202](images/devices/digoo-nx-sp202.jpg)|![Vanzavanzu Smart WiFi Plug Mini](images/devices/vanzavanzu-smart-wifi-plug-mini.jpg)|| +|**Digoo NX SP202**|**Vanzavanzu Smart WiFi Plug Mini**|| ### Embedded switches diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 176945bb..ee77a638 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -25,6 +25,7 @@ //#define BH_ONOFRE //#define BLITZWOLF_BWSHPX //#define BLITZWOLF_BWSHPX_V23 +//#define BLITZWOLF_BWSHP5 //#define DIGOO_NX_SP202 //#define ELECTRODRAGON_WIFI_IOT //#define ESPURNA_BASE diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 32276875..8fe84327 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -2959,6 +2959,48 @@ // BUTTON1 and LED1 are using Serial pins #define DEBUG_SERIAL_SUPPORT 0 +// ----------------------------------------------------------------------------- +// Similar to both devices above but also with switchable USB ports +// and other sensor (CSE7766). +// the pin layout is different to the above two versions +// BlitzWolf SHP5 +// ----------------------------------------------------------------------------- +#elif defined(BLITZWOLF_BWSHP5) + + // Info + #define MANUFACTURER "BLITZWOLF" + #define DEVICE "BWSHP5" + + // Buttons + #define BUTTON1_PIN 16 + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH + #define BUTTON1_RELAY 1 + + // Relays + // Power plug + #define RELAY1_PIN 14 + #define RELAY1_TYPE RELAY_TYPE_NORMAL + // USB + #define RELAY2_PIN 5 + #define RELAY2_TYPE RELAY_TYPE_NORMAL + + // LEDs + #define LED1_PIN 2 + #define LED1_PIN_INVERSE 1 + #define LED2_PIN 0 + #define LED2_PIN_INVERSE 1 + #define LED2_MODE LED_MODE_FINDME + #define LED2_RELAY 1 + + // Disable UART noise + #define DEBUG_SERIAL_SUPPORT 0 + + // CSE7766 + #ifndef CSE7766_SUPPORT + #define CSE7766_SUPPORT 1 + #endif + #define CSE7766_PIN 1 + // ----------------------------------------------------------------------------- // Teckin SP21 // ----------------------------------------------------------------------------- diff --git a/code/platformio.ini b/code/platformio.ini index 33e48b2b..9e5fbdc9 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -1363,6 +1363,16 @@ build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHPX_V23 upload_port = ${common.ota_upload_port} upload_flags = ${common.ota_upload_flags} +[env:blitzwolf-bwshp5] +board = ${common.board_1m} +build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHP5 + +[env:blitzwolf-bwshp5-ota] +board = ${common.board_1m} +build_flags = ${common.build_flags_1m0m} -DBLITZWOLF_BWSHP5 +upload_port = ${common.ota_upload_port} +upload_flags = ${common.ota_upload_flags} + [env:teckin-sp21] board = ${common.board_1m} build_flags = ${common.build_flags_1m0m} -DTECKIN_SP21 diff --git a/images/devices/blitzwolf-bw-shp5.jpg b/images/devices/blitzwolf-bw-shp5.jpg new file mode 100644 index 00000000..f298f1c9 Binary files /dev/null and b/images/devices/blitzwolf-bw-shp5.jpg differ