mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-27 17:37:45 +01:00
my9231->bit_depth: parameter name and sonoff B1 (#489)
- Fix the parameter name bit_depth (current referred to as bit_depths) - Add bit_depth: 8 to sonoff B1 example config. This fixed my application on a Sonoff B1 (see also https://github.com/esphome/issues/issues/991)
This commit is contained in:
parent
61b1a55d2b
commit
89eba19430
@ -51,7 +51,7 @@ Configuration variables:
|
|||||||
chain. Must be in range from 3 to 1020. Defaults to 6.
|
chain. Must be in range from 3 to 1020. Defaults to 6.
|
||||||
- **num_chips** (*Optional*, int): Number of chips in the chain. Must be
|
- **num_chips** (*Optional*, int): Number of chips in the chain. Must be
|
||||||
in range from 1 to 255. Defaults to 2.
|
in range from 1 to 255. Defaults to 2.
|
||||||
- **bit_depths** (*Optional*, int): The bit depth to use for all output
|
- **bit_depth** (*Optional*, int): The bit depth to use for all output
|
||||||
channels in this chain. Must be one of 8, 12, 14 or 16. Defaults to 16.
|
channels in this chain. Must be one of 8, 12, 14 or 16. Defaults to 16.
|
||||||
- **id** (*Optional*, :ref:`config-id`): The id to use for
|
- **id** (*Optional*, :ref:`config-id`): The id to use for
|
||||||
this ``my9231`` component. Use this if you have multiple MY9231/MY9291 chains
|
this ``my9231`` component. Use this if you have multiple MY9231/MY9291 chains
|
||||||
@ -92,6 +92,7 @@ complete configuration for a Sonoff B1 looks like:
|
|||||||
clock_pin: GPIO14 # GPIO15 for AiLight
|
clock_pin: GPIO14 # GPIO15 for AiLight
|
||||||
num_channels: 6
|
num_channels: 6
|
||||||
num_chips: 2
|
num_chips: 2
|
||||||
|
bit_depth: 8
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: my9231
|
- platform: my9231
|
||||||
|
Loading…
Reference in New Issue
Block a user