README.md in lps-0.1.0 vs README.md in lps-0.1.1
- old
+ new
@@ -27,12 +27,19 @@
now = Time.now
LPS.freq(10).while { Time.now - now < 10 }.loop do
# do something
end
+
# - Loops 10 times per second
# - Loops indefinitely
LPS.freq(10).loop do
+ # do something
+end
+
+
+# Every 0.1 second
+LPS.interval(0.1).loop do
# do something
end
```
Breaking out of the loop