Skip to content

Commit

Permalink
Merge pull request #235 from mozz100/patch-1
Browse files Browse the repository at this point in the history
Fix "repeat_time" docs in README
  • Loading branch information
Gadgetoid authored Jan 25, 2022
2 parents fcf7b47 + aea0756 commit 9c05e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micropython/modules/plasma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ button_a = Button(plasma2040.BUTTON_A)
button_b = Button(plasma2040.BUTTON_B)
```

To get the button state, call `.read()`. If the button is held down, then this will return `True` at the interval specified by `repeat_time` until `hold_time` is reached, at which point it will return `True` every `hold_time / 3` milliseconds. This is useful for rapidly increasing/decreasing values such as hue:
To get the button state, call `.read()`. If the button is held down, then this will return `True` at the interval specified by `repeat_time` until `hold_time` is reached, at which point it will return `True` every `repeat_time / 3` milliseconds. This is useful for rapidly increasing/decreasing values such as hue:

```python
state = button_a.read()
Expand Down

0 comments on commit 9c05e69

Please sign in to comment.