Browse Source

Device: MAGICHOME_ZJ_WFMN_C_11 (#2051)

master
Max Prokhorov 5 years ago
committed by GitHub
parent
commit
8e8c990ff0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +23
    -0
      code/espurna/config/hardware.h
  3. +10
    -0
      code/platformio.ini

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

@ -109,6 +109,7 @@
//#define MAGICHOME_ZJ_ESPM_5CH_B_13 //#define MAGICHOME_ZJ_ESPM_5CH_B_13
//#define MAGICHOME_ZJ_WFMN_A_11 //#define MAGICHOME_ZJ_WFMN_A_11
//#define MAGICHOME_ZJ_WFMN_B_11 //#define MAGICHOME_ZJ_WFMN_B_11
//#define MAGICHOME_ZJ_WFMN_C_11
//#define MANCAVEMADE_ESPLIVE //#define MANCAVEMADE_ESPLIVE
//#define MAXCIO_WDE004 //#define MAXCIO_WDE004
//#define MAXCIO_WUS002S //#define MAXCIO_WUS002S


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

@ -1380,6 +1380,28 @@
#define RFB_DIRECT 1 #define RFB_DIRECT 1
#define RFB_RX_PIN 4 #define RFB_RX_PIN 4
#elif defined(MAGICHOME_ZJ_WFMN_C_11)
// Info
#define MANUFACTURER "MAGICHOME"
#define DEVICE "ZJ_WFMN_C_11"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
// Buttons
#define BUTTON1_PIN 0
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
// LEDs
#define LED1_PIN 2
#define LED1_PIN_INVERSE 1
// Light
#define LIGHT_CHANNELS 1
#define LIGHT_CH1_PIN 12 // WHITE
#elif defined(MAGICHOME_ZJ_ESPM_5CH_B_13) #elif defined(MAGICHOME_ZJ_ESPM_5CH_B_13)
// Info // Info
@ -4221,6 +4243,7 @@
#define RELAY2_TYPE RELAY_TYPE_NORMAL #define RELAY2_TYPE RELAY_TYPE_NORMAL
#define RELAY3_TYPE RELAY_TYPE_NORMAL #define RELAY3_TYPE RELAY_TYPE_NORMAL
#define RELAY4_TYPE RELAY_TYPE_NORMAL #define RELAY4_TYPE RELAY_TYPE_NORMAL
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#else #else


+ 10
- 0
code/platformio.ini View File

@ -755,6 +755,16 @@ build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_ESPM_5CH_B_13
upload_port = ${common.ota_upload_port} upload_port = ${common.ota_upload_port}
upload_flags = ${common.ota_upload_flags} upload_flags = ${common.ota_upload_flags}
[env:magichome-zj-wfmn-c-11]
board = ${common.board_1m}
build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_C_11
[env:magichome-zj-wfmn-c-11-ota]
board = ${common.board_1m}
build_flags = ${common.build_flags_1m0m} -DMAGICHOME_ZJ_WFMN_C_11
upload_port = ${common.ota_upload_port}
upload_flags = ${common.ota_upload_flags}
[env:huacanxing-h801] [env:huacanxing-h801]
board = ${common.board_1m} board = ${common.board_1m}
build_flags = ${common.build_flags_1m0m} -DHUACANXING_H801 build_flags = ${common.build_flags_1m0m} -DHUACANXING_H801


Loading…
Cancel
Save