Use input detection instead of busy wait

This commit is contained in:
pangduckwai
2019-04-20 14:35:29 +08:00
parent fa26aff5ed
commit 322bdea68e
2 changed files with 48 additions and 47 deletions
+3 -1
View File
@@ -74,4 +74,6 @@ That's it, the display is ready to use.
* `sudo python demo.py`
## Next step
The Python code in this repo is adopted from `demo.py` provided by the manufacturer, which is no good for 'production' use. Because your Pi will be too busy looking for button inputs instead of doing anything else useful... Working on a better version...
The original Python code in this repo is adopted from `demo.py` provided by the manufacturer, which is no good for 'production' use. Because your Pi will be too busy looking for button inputs instead of doing anything else useful.
The latest version utilize GPIO input detection instead of busy wait, which is much more reasonable CPU-wise.