Browse Source

added support for gosund ws1 aka gosund KS-602S

sensors
Nick Vrana 5 years ago
parent
commit
4eeafd244a
3 changed files with 24 additions and 2 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +19
    -0
      code/espurna/config/hardware.h
  3. +4
    -2
      code/platformio.ini

+ 1
- 0
code/espurna/config/arduino.h View File

@ -112,6 +112,7 @@
//#define GBLIFE_RGBW_SOCKET //#define GBLIFE_RGBW_SOCKET
//#define SMARTLIFE_MINI_SMART_SOCKET //#define SMARTLIFE_MINI_SMART_SOCKET
//#define GOSUND_SP1_V23 //#define GOSUND_SP1_V23
//#define GOSUND_WS1
//#define ARILUX_AL_LC02_V14 //#define ARILUX_AL_LC02_V14
//#define BLITZWOLF_BWSHP2_V23 //#define BLITZWOLF_BWSHP2_V23


+ 19
- 0
code/espurna/config/hardware.h View File

@ -2820,6 +2820,25 @@
// Several boards under different names uing a power chip labelled BL0937 or HJL-01 // 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) #elif defined(GOSUND_SP1_V23)
// Info // Info


+ 4
- 2
code/platformio.ini View File

@ -2802,16 +2802,18 @@ upload_port = ${common.upload_port}
upload_flags = ${common.upload_flags} upload_flags = ${common.upload_flags}
extra_scripts = ${common.extra_scripts} extra_scripts = ${common.extra_scripts}
[env:gosund-sp1-v23]
[env:gosund-ws1]
platform = ${common.platform} platform = ${common.platform}
framework = ${common.framework} framework = ${common.framework}
board = ${common.board_1m} board = ${common.board_1m}
board_build.flash_mode = ${common.flash_mode} board_build.flash_mode = ${common.flash_mode}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore} lib_ignore = ${common.lib_ignore}
build_flags = ${common.build_flags_1m0m} -DGOSUND_SP1_V23
build_flags = ${common.build_flags_1m0m} -DGOSUND_WS1
upload_speed = ${common.upload_speed} upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed} monitor_speed = ${common.monitor_speed}
upload_port = ${common.upload_port}
upload_flags = ${common.upload_flags}
extra_scripts = ${common.extra_scripts} extra_scripts = ${common.extra_scripts}
[env:gosund-sp1-v23-ota] [env:gosund-sp1-v23-ota]


Loading…
Cancel
Save