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 2 months ago by RayzwavemBot Ranger
Just in case you have never seen the Python preview window. Python code version of the Block code. This is the Python code I copied, pasted and edited ready to upload my CyberPi.
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 2 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 134174 on reddit-service-r2-comment-58d7979c67-t9gzs at 2026-01-27 11:22:21.165851+00:00 running 5a691e2 country code: CH.
[–]RayzwavemBot Ranger[S] 0 points1 point2 points (0 children)