Python

Python Editor and MicroPython information

Storing and retrieving values in non volatile data
The MicroPython language has a feature that allows you to read, write, and delete files. You can have multiple files and the Mu editor allows you to access...
Tue, 10 Apr, 2018 at 3:21 PM
Strange rounding error
PROBLEM When I use floating point numbers, I get a strange rounding problem. Why do I get lots of digits displayed in a number? Strange rou...
Thu, 10 Nov, 2016 at 10:46 AM
How to use an updated MicroPython image
QUESTION How do I use a more recent MicroPython image to generate my scripts? I have a patched .hex image how do I use this to load Python onto the mic...
Sat, 25 Feb, 2017 at 9:26 AM
Build a new Image() from a buffer
Code to useIf you want to display an image from a pre-prepared buffer. from microbit import * i = Image(5,5,b'\x08\x08\x08\x08\x08\x08\x08\x08\x08...
Thu, 5 Jul, 2018 at 2:27 PM
Why do I get a MemoryError when using Micropython
Memory errors There are two memory or RAM issues that you might encounter:    When your script is being converted from it's Python source into r...
Tue, 26 Jun, 2018 at 11:30 AM
Receiving radio data from the Makecode editor within Python
The Makecode editor radio blocks add some additional binary information at the start of the radio message. When received by Python, this binary data can cau...
Thu, 6 Dec, 2018 at 3:38 PM
Program is interrupted when using UART
Problem When redirecting the UART service to pins, it doesn't turn off the CTRL-C handling, so receiving a binary 0x03 from the device at the other en...
Wed, 13 Dec, 2017 at 3:52 PM
How to read the device serial number
QUESTION How do I read the device serial number in MicroPython? I want some unique* way to identify my micro:bit, how can I do this? ANSWER fro...
Tue, 5 Nov, 2019 at 2:09 PM
What is the difference between 'import microbit' and 'from microbit import *'
These are both valid examples of Python syntax and effectively doing the same thing in a slightly different way. import microbit imports the entire modu...
Tue, 2 Apr, 2019 at 3:26 PM