Is your micro:bit in the wrong orientation

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
rhubarbdog
Posts: 168
Joined: Tue Nov 07, 2017 11:45 pm

Is your micro:bit in the wrong orientation

Post by rhubarbdog » Sat Aug 18, 2018 9:39 am

Hi
i've written these functions to display and scroll text and images at any orientation on the micro:bit.
You can combine images and strings in a list and scroll that, the code is on GitHub https://github.com/rhubarbdog/microbit-scrolling-images

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Is your micro:bit in the wrong orientation

Post by shaoziyang » Sun Aug 19, 2018 1:06 am

It's great!

I found it can only run in new version miccropython, old version will cause memory alloc error.

rhubarbdog
Posts: 168
Joined: Tue Nov 07, 2017 11:45 pm

Re: Is your micro:bit in the wrong orientation

Post by rhubarbdog » Sun Aug 19, 2018 11:27 am

Thanks, I've just improved it. It now puts exactly 1 pixel of space between characters when they are non-monospaced, it took a bit of a re-write to avoid dreaded memory errors when importing modules written in micro python

Post Reply