diff options
| author | Daniel Pollard <daniel@learnweaver.com> | 2020-05-06 09:05:14 +1000 |
|---|---|---|
| committer | Daniel Pollard <daniel@learnweaver.com> | 2020-05-06 09:05:14 +1000 |
| commit | 8961dd9fe74a3ba6e55bfb1b8132a93de920a1dc (patch) | |
| tree | 60b7d5c122785b654b3a2ae750c2e5c0619096d5 /shared-bindings/countio | |
| parent | 7f1be814c89e4ecbaf6c396561ce2d01d9e7a049 (diff) | |
changed build variables as per advice
Diffstat (limited to 'shared-bindings/countio')
| -rw-r--r-- | shared-bindings/countio/Counter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shared-bindings/countio/Counter.c b/shared-bindings/countio/Counter.c index c10294199..efa3387a6 100644 --- a/shared-bindings/countio/Counter.c +++ b/shared-bindings/countio/Counter.c @@ -31,10 +31,9 @@ //| from board import * //| //| pin_counter = countio.Counter(board.D1) -//| +//| #reset the count after 100 counts //| while True: -//| count = pin_counter.count -//| if count == None 10: +//| if pin_counter.count == 100: //| pin_counter.reset() //| print(pin_counter.count) //| |
