diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 6babb365..f71dd161 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -1637,6 +1637,26 @@ #define LIGHT_CH3_INVERSE 0 #define LIGHT_CH4_INVERSE 0 +#elif defined(ARILUX_AL_LC02V14) + + // Info + #define MANUFACTURER "ARILUX" + #define DEVICE "AL_LC02V14" + #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 5 // GREEN + #define LIGHT_CH3_PIN 12 // BLUE + #define LIGHT_CH4_PIN 13 // WHITE1 + #define LIGHT_CH1_INVERSE 0 + #define LIGHT_CH2_INVERSE 0 + #define LIGHT_CH3_INVERSE 0 + #define LIGHT_CH4_INVERSE 0 + #elif defined(ARILUX_AL_LC06) // Info diff --git a/code/platformio.ini b/code/platformio.ini index 8127828a..f352507a 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -1404,6 +1404,31 @@ upload_flags = ${common.upload_flags} monitor_speed = ${common.monitor_speed} extra_scripts = ${common.extra_scripts} +[env:arilux-al-lc02v14] +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} -DARILUX_AL_LC02V14 +monitor_speed = ${common.monitor_speed} +extra_scripts = ${common.extra_scripts} + +[env:arilux-al-lc02v14-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} -DARILUX_AL_LC02V14 +upload_speed = ${common.upload_speed} +upload_port = ${common.upload_port} +upload_flags = ${common.upload_flags} +monitor_speed = ${common.monitor_speed} +extra_scripts = ${common.extra_scripts} + [env:arilux-al-lc06] platform = ${common.platform} framework = ${common.framework}