Skip to content

Commit

Permalink
Merge pull request #14 from topshed/main
Browse files Browse the repository at this point in the history
fixed error in docs
  • Loading branch information
ZodiusInfuser authored Dec 17, 2024
2 parents b5118d1 + 418fe6f commit 82ee19d
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 82ee19d

Please sign in to comment.