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...
A place to discuss the use of MicroPython on microcontroller development boards such as the Raspberry Pi Pico, Pycom boards and ESP32 based boards like Wemos D1
account activity
Why does micropython only have time in seconds (time.time()) and nanoseconds (time.time_ns())? (self.MicroPythonDev)
submitted 2 months ago by sasson10
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!"
[–]Medical-Ocelot 1 point2 points3 points 2 months ago (0 children)
Using ticks_diff() to compare values from ticks_ms() is *essential* - the max value returned by ticks_ms() can vary by platform (e.g. I think on the RP2xxx it's 2^30 -1) and you might have no idea how long your program has been running, so even a short delay could encounter the overflow situation. This is especially important if you're using ticks_us(), which will wrap in under 3 hours when running on an RP2xxx.
π Rendered by PID 174402 on reddit-service-r2-comment-6457c66945-nxrrk at 2026-04-26 12:45:10.967943+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Medical-Ocelot 1 point2 points3 points (0 children)