Fix documentation examples setting RGB LED

Update the examples using set_led function and replacing to use set_rgb

Fixes #221
This commit is contained in:
Edd Hurst 2021-11-21 14:05:12 +00:00 committed by GitHub
parent e249113fea
commit 47259c55e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ You can set the colour of an LED in either the RGB colourspace, or HSV (Hue, Sat
Set the first LED - `0` - to Purple `255, 0, 255`:
```python
led_strip.set_led(0, 255, 0, 255)
led_strip.set_rgb(0, 255, 0, 255)
```
#### HSV
@ -133,7 +133,7 @@ You can set the colour of an LED in either the RGB colourspace, or HSV (Hue, Sat
Set the first LED - `0` - to Purple `255, 0, 255`:
```python
led_strip.set_led(0, 255, 0, 255)
led_strip.set_rgb(0, 255, 0, 255)
```
#### HSV