Browse Source

Adding support for miobulb001 (#1973)

* Adding support for miobulb001

* Add miobulb001 images

* defined MUVIT_IO_MIOBULB001

* Update platformio.ini

revert default env
use dashes

* typo

* typo
master
ealfaroc 5 years ago
committed by Max Prokhorov
parent
commit
cec6c6a385
8 changed files with 54 additions and 1 deletions
  1. +2
    -0
      README.md
  2. +1
    -0
      code/espurna/config/arduino.h
  3. +25
    -0
      code/espurna/config/hardware.h
  4. +15
    -0
      code/espurna/migrate.ino
  5. +11
    -1
      code/platformio.ini
  6. BIN
      images/devices/muvit-io-miobulb001-board.jpg
  7. BIN
      images/devices/muvit-io-miobulb001-flash-connections.jpg
  8. BIN
      images/devices/muvit-io-miobulb001.jpg

+ 2
- 0
README.md View File

@ -328,6 +328,8 @@ Here is the list of supported hardware. For more information please refer to the
|**Arilux AL-LC01 (RGB)**|**Arilux AL-LC02 (RGBW)**|**Arilux AL-LC06 (RGBWWCW)**|
|![Arilux AL-LC11 (RGBWWW) & RF](images/devices/arilux-al-lc11.jpg)|![MagicHome LED Controller (1.0 and 2.x)](images/devices/magichome-led-controller.jpg)|![Huacanxing H801/802](images/devices/huacanxing-h801.jpg)|
|**Arilux AL-LC11 (RGBWWW) & RF**|**MagicHome LED Controller (1.0/2.x, also ZJ WFMN A/B11)**|**Huacanxing H801/802**|
|![Muvit I/O MIOBULB001](images/devices/muvit-io-miobulb001.jpg)|
|**Muvit I/O MIOBULB001**|
### Radio links / gateways


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

@ -105,6 +105,7 @@
//#define MANCAVEMADE_ESPLIVE
//#define MAXCIO_WDE004
//#define MAXCIO_WUS002S
//#define MUVIT_IO_MIOBULB001
//#define NEO_COOLCAM_NAS_WR01W
//#define NEXETE_A19
//#define NODEMCU_BASIC


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

@ -4012,6 +4012,31 @@
#define HLW8012_INTERRUPT_ON FALLING
// -----------------------------------------------------------------------------
// MUVIT_IO_MIOBULB001
// -----------------------------------------------------------------------------
#elif defined(MUVIT_IO_MIOBULB001)
// Info
#define MANUFACTURER "MUVIT_IO"
#define DEVICE "MIOBULB001"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
// Light
#define LIGHT_CHANNELS 4
#define LIGHT_CH1_PIN 14 // RED
#define LIGHT_CH2_PIN 12 // GREEN
#define LIGHT_CH3_PIN 13 // BLUE
#define LIGHT_CH4_PIN 4 // WHITE
#define LIGHT_CH1_INVERSE 0
#define LIGHT_CH2_INVERSE 0
#define LIGHT_CH3_INVERSE 0
#define LIGHT_CH4_INVERSE 0
// -----------------------------------------------------------------------------
#else


+ 15
- 0
code/espurna/migrate.ino View File

@ -1372,6 +1372,21 @@ void migrate() {
setSetting("hlwSelC", LOW);
setSetting("hlwIntM", FALLING);
#elif defined(MUVIT_IO_MIOBULB001)
setSetting("board", 102);
setSetting("relayProvider", RELAY_PROVIDER_LIGHT);
setSetting("lightProvider", LIGHT_PROVIDER_DIMMER);
setSetting("chGPIO", 0, 14);
setSetting("chGPIO", 1, 12);
setSetting("chGPIO", 2, 13);
setSetting("chGPIO", 3, 4);
setSetting("chLogic", 0, 0);
setSetting("chLogic", 1, 0);
setSetting("chLogic", 2, 0);
setSetting("chLogic", 3, 0);
setSetting("relays", 1);
#else
// Allow users to define new settings without migration config


+ 11
- 1
code/platformio.ini View File

@ -1626,4 +1626,14 @@ build_flags = ${common.build_flags_4m1m} -DFS_UAP1
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DFS_UAP1
upload_port = ${common.ota_upload_port}
upload_flags = ${common.ota_upload_flags}
upload_flags = ${common.ota_upload_flags}
[env:muvit-io-miobulb001]
board = ${common.board_1m}
build_flags = ${common.build_flags_1m0m} -DMUVIT_IO_MIOBULB001
[env:muvit-io-miobulb001-ota]
board = ${common.board_1m}
build_flags = ${common.build_flags_1m0m} -DMUVIT_IO_MIOBULB001
upload_port = ${common.ota_upload_port}
upload_flags = ${common.ota_upload_flags}

BIN
images/devices/muvit-io-miobulb001-board.jpg View File

Before After
Width: 506  |  Height: 615  |  Size: 117 KiB

BIN
images/devices/muvit-io-miobulb001-flash-connections.jpg View File

Before After
Width: 722  |  Height: 676  |  Size: 86 KiB

BIN
images/devices/muvit-io-miobulb001.jpg View File

Before After
Width: 400  |  Height: 304  |  Size: 39 KiB

Loading…
Cancel
Save