diff --git a/README.md b/README.md index e46f67e2..11810f87 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index cb60ac64..8505ce90 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -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 diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index ee846c41..3917730d 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -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 diff --git a/code/espurna/migrate.ino b/code/espurna/migrate.ino index 1b4dd8ba..e1bb7884 100644 --- a/code/espurna/migrate.ino +++ b/code/espurna/migrate.ino @@ -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 diff --git a/code/platformio.ini b/code/platformio.ini index 521219f6..2493d5f0 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -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} \ No newline at end of file +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} diff --git a/images/devices/muvit-io-miobulb001-board.jpg b/images/devices/muvit-io-miobulb001-board.jpg new file mode 100644 index 00000000..69b2c7f9 Binary files /dev/null and b/images/devices/muvit-io-miobulb001-board.jpg differ diff --git a/images/devices/muvit-io-miobulb001-flash-connections.jpg b/images/devices/muvit-io-miobulb001-flash-connections.jpg new file mode 100644 index 00000000..724cce8d Binary files /dev/null and b/images/devices/muvit-io-miobulb001-flash-connections.jpg differ diff --git a/images/devices/muvit-io-miobulb001.jpg b/images/devices/muvit-io-miobulb001.jpg new file mode 100644 index 00000000..9130a639 Binary files /dev/null and b/images/devices/muvit-io-miobulb001.jpg differ