diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index f0c688e5..a1eb2e8d 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -113,6 +113,7 @@ //#define GBLIFE_RGBW_SOCKET //#define SMARTLIFE_MINI_SMART_SOCKET //#define GOSUND_SP1_V23 +//#define GOSUND_WS1 //#define ARILUX_AL_LC02_V14 //#define BLITZWOLF_BWSHP2_V23 diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index ba30a6e4..907a292a 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -2852,6 +2852,25 @@ // Several boards under different names uing a power chip labelled BL0937 or HJL-01 // ----------------------------------------------------------------------------- +#elif defined(GOSUND_WS1) + + // Info + #define MANUFACTURER "GOSUND" + #define DEVICE "WS1" + + // Buttons + #define BUTTON1_PIN 0 + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH + #define BUTTON1_RELAY 1 + + // Relays + #define RELAY1_PIN 14 + #define RELAY1_TYPE RELAY_TYPE_NORMAL + + // LEDs + #define LED1_PIN 1 + #define LED1_PIN_INVERSE 1 + #elif defined(GOSUND_SP1_V23) // Info diff --git a/code/platformio.ini b/code/platformio.ini index ec3ba376..1bf9c6b6 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -2826,6 +2826,32 @@ upload_port = ${common.upload_port} upload_flags = ${common.upload_flags} extra_scripts = ${common.extra_scripts} +[env:gosund-ws1] +platform = ${common.platform} +framework = ${common.framework} +board = ${common.board_1m} +board_build.flash_mode = ${common.flash_mode} +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +build_flags = ${common.build_flags_1m0m} -DGOSUND_WS1 +upload_speed = ${common.upload_speed} +monitor_speed = ${common.monitor_speed} +extra_scripts = ${common.extra_scripts} + +[env:gosund-ws1-ota] +platform = ${common.platform} +framework = ${common.framework} +board = ${common.board_1m} +board_build.flash_mode = ${common.flash_mode} +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +build_flags = ${common.build_flags_1m0m} -DGOSUND_WS1 +upload_speed = ${common.upload_speed} +monitor_speed = ${common.monitor_speed} +upload_port = ${common.upload_port} +upload_flags = ${common.upload_flags} +extra_scripts = ${common.extra_scripts} + [env:gosund-sp1-v23] platform = ${common.platform} framework = ${common.framework}