Browse Source

Merge pull request #1469 from sq5gvm/lc02v14-support

Support for newer AL-LC02 boards with different pinout
refactor-terminal
Xose Pérez 5 years ago
committed by GitHub
parent
commit
4e9a528d3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions
  1. +20
    -0
      code/espurna/config/hardware.h
  2. +25
    -0
      code/platformio.ini

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

@ -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


+ 25
- 0
code/platformio.ini View File

@ -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}


Loading…
Cancel
Save