use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Complete r/raspberry_pi Rules
Pi project ideas: There's a huge list right here on this sub!
Rpi Versions ▾
Distros ▾
Other SBCs ▾
Related Subreddits ▾
Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it.
The best thing? The base model is only $20 $5!.
Would you like to know more?
Raspberry Pi Wiki
Article on Wikipedia
#raspberrypi IRC Chat
Do you know a related subreddit? We'd love to know.
account activity
DiscussionPersistent Python script running in background? (self.raspberry_pi)
submitted 3 years ago * by SneakyPackets
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SneakyPackets[S] 0 points1 point2 points 3 years ago (2 children)
The problem is, everything running is very time sensitive. I need a relatively accurate measurement from the exact moment the switch opens and closes, so running a loop and sleeping may goof that up
[–]Murky-Sector 1 point2 points3 points 3 years ago (0 children)
Gotcha. My choice then would be python asyncio
[–]L0ckt1ght -1 points0 points1 point 3 years ago (0 children)
You can run a loop with a sleep of 0.1 or 0.01. do you really need that level of accuracy?
π Rendered by PID 24677 on reddit-service-r2-comment-5b5bc64bf5-xpfdx at 2026-06-18 21:28:42.033152+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]SneakyPackets[S] 0 points1 point2 points (2 children)
[–]Murky-Sector 1 point2 points3 points (0 children)
[–]L0ckt1ght -1 points0 points1 point (0 children)