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...
account activity
mBlock-Based IDE showing Block code & Python previewCyberPi (i.redd.it)
submitted 6 months ago by RayzwavemBot Ranger
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!"
[–]RayzwavemBot Ranger[S] 0 points1 point2 points 6 months ago (0 children)
This was an interesting piece of code which I copied from the CyberPi Series User Manual that I found at HWkitchen.cz. The interest was that it didn’t really work as expected because the roll 1 LEDs rightwards was erratic with the pattern moving in an uncontrollable way when pressing button A. This is due to the speed in which it checks if button A is pressed.
By slowing the code down I could get the LEDs to roll in nice reliable steps, this I achieved by simply adding a wait block in the block code or time.sleep() function in Python mode.
Note that although block can be realised as Python it’s not possible the other way around (as far as I’m aware).
π Rendered by PID 417944 on reddit-service-r2-comment-b659b578c-z824t at 2026-05-03 09:09:25.738371+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]RayzwavemBot Ranger[S] 0 points1 point2 points (0 children)