Not Watching
On your display
Two eyes that dart to random targets, blink on their own schedule, and randomly **squint**.
- Topic
- Miscellaneous
- Includes
- Script
Runs on
- Runs on 32×8 (TC001 & DIY)
- Runs on 52×16 (TC002)
- Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.
Choose your display in the next step.
Script description
Two eyes that dart to random targets, blink on their own schedule, and randomly squint.
Reads sensor.light() in loop() - turn the room lights on and the pupils shrink to a
point with a blinking ! between them, like you startled it. It also comments out loud:
guaranteed on a button press, and 30% likely each time it rotates into view.
Controls: select = make it say something.
If the startle never fires, lower the l-self.lit>15 threshold in loop() - I could not
verify what scale sensor.light() reports on a TC001. If the eyes look boxy, swap
circle_fill(cx,3,3,...) for rect_fill(cx-3,1,7,5,...); on only 8 rows that can read
rounder than an actual circle.
Sign in to view and copy the code of this script.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More scripts in Miscellaneous
Something wrong with this script? Report it.
Have an idea?
Sign in to ask questions and join the conversation.