Change documentation changing the original LED code to statusLED

This commit is contained in:
Jeroen Harkes 2022-02-20 18:39:35 +01:00 committed by Kyle Brown
parent fd30b7a8d8
commit ecc8b46a2c

View File

@ -36,11 +36,12 @@ keyboard.extensions.append(statusLED)
All of these values can be set by default for when the keyboard boots. All of these values can be set by default for when the keyboard boots.
```python ```python
from kmk.extensions.led import AnimationModes statusLED = statusLED(
led_ext = LED(
led_pin=led_pin, led_pin=led_pin,
brightness=30, brightness=30,
brightness_step=5, brightness_step=5,
brightness_limit=100, brightness_limit=100,
) )
``` ```
The brightness values are in percentages.