Skip to content

Commit

Permalink
Merge pull request #7 from omrisarig13/master
Browse files Browse the repository at this point in the history
Fix misleading examples in README
  • Loading branch information
Gadgetoid committed Sep 15, 2021
2 parents 8e32f40 + 46880d2 commit 3309f83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -49,3 +49,11 @@ lights.set_pixel(2, 0, 0, 255) # Pixel 3 to Blue
```

Pixels are zero-indexed and accept Red, Green and Blue colour values from 0 to 255.

To set the lights, after the colours were set as wanted, use the `show` method:

```python
lights.show()
```

Without the `show` method, only the internal data is updated, the lights changes only after this function call.
8 changes: 8 additions & 0 deletions library/README.md
Expand Up @@ -50,6 +50,14 @@ lights.set_pixel(2, 0, 0, 255) # Pixel 3 to Blue

Pixels are zero-indexed and accept Red, Green and Blue colour values from 0 to 255.

To set the lights, after the colours were set as wanted, use the `show` method:

```python
lights.show()
```

Without the `show` method, only the internal data is updated, the lights changes only after this function call.

# Changelog

0.0.3
Expand Down

0 comments on commit 3309f83

Please sign in to comment.