Skip to content

Commit

Permalink
fixed error in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
topshed committed Dec 13, 2024
1 parent b5118d1 commit 418fe6f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,23 @@ This `RGBLED` object offers two functions to control its associated output, `set

```python
# Turn the rgb output to red
tiny.set_rgb(255, 0, 0)
# tiny.set_hsv(0, 1, 1)
tiny.rgb.set_rgb(255, 0, 0)
# tiny.rgb.set_hsv(0, 1, 1)
time.sleep(1)

# Turn the rgb output to green
tiny.set_rgb(0, 255, 0)
# tiny.set_hsv(0.333, 1, 1)
tiny.rgb.set_rgb(0, 255, 0)
# tiny.rgb.set_hsv(0.333, 1, 1)
time.sleep(1)

# Turn the rgb output to blue
tiny.set_rgb(0, 0, 255)
# tiny.set_hsv(0.666, 1, 1)
tiny.rgb.set_rgb(0, 0, 255)
# tiny.rgb.set_hsv(0.666, 1, 1)
time.sleep(1)

# Turn the rgb output to white
tiny.set_rgb(255, 255, 255)
# tiny.set_hsv(0, 0, 1)
tiny.rgb.set_rgb(255, 255, 255)
# tiny.rgb.set_hsv(0, 0, 1)
time.sleep(1)
```

Expand Down

0 comments on commit 418fe6f

Please sign in to comment.