Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions src/docs/devices/lanbon_l8/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,21 @@ difficulty: 2
| GPIO32 | green |
| GPIO33 | blue |

### Relay (3-gang switch model)
### Relay (L8-HS, 3-gang switch model)

| Pin | Function |
| ------ | ------------- |
| GPIO12 | relay #1 |
| GPIO14 | relay #2 |
| GPIO27 | relay #3 |

### Dimmer (L8-HD, 1-gang switch model)

| Pin | Function |
| ------ | ------------- |
| GPIO12 | Dimmer Tx |
| GPIO27 | Dimmer power relay |

### How To Flash

See BlackAdder's instruction on [how to flash custom firmware](https://blakadder.com/lanbon-L8-custom-firmware/).
Expand All @@ -81,16 +88,26 @@ output:
- platform: ledc
pin: GPIO33
id: moodBlue
- platform: gpio
- platform: gpio ## -HS only
pin: GPIO12
id: relay_1
- platform: gpio
- platform: gpio ## -HS only
pin: GPIO14
id: relay_2
- platform: gpio
pin: GPIO27
id: relay_3

uart: ## -HD only
tx_pin:
number: GPIO12
inverted: false # true for EU
id: dimmer_tx
baud_rate: 115200
data_bits: 8
parity: NONE
stop_bits: 1

light:
- platform: rgb
name: "Mood Light"
Expand All @@ -102,6 +119,12 @@ light:
id: backlight
output: backlight_pwm
restore_mode: ALWAYS_ON
- platform: lanbon_l8_hd ## -HD only
name: "Light"
id: local_dimmer
restore_mode: ALWAYS_OFF
gamma_correct: 0.0
enable_pin: relay_3

spi:
clk_pin: GPIO19
Expand Down