LCD driver for micro:bit

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

LCD driver for micro:bit

Post by rhubarbdog » Sun May 13, 2018 3:51 pm

I have posted a repository which facilitates 16x2 to 40x4 LCD displays to be used over i2c with a microbit. The code can be found at

Posts: 43
Joined: Sun Jul 29, 2018 8:12 am
Location: Athlone, Ireland

Re: LCD driver for micro:bit

Post by pmulvey » Mon May 04, 2020 8:43 am

I used your driver but whenever I wrote more that 10 characters on the LCD I got a Memory Allocation error. I tried using .mpy files instead but it appears that the microbit does not recognise these, reporting not found. Eventually I stripped out all of the variable declarations in your code and replaced them with literals in the code body and this now works. I have had memory allocation issues with the ESP8266 and resolved them by using .mpy files. I suppose with 16K of RAM the microbit is very limited on the size of .py files it can handle.
Paul Mulvey

Post Reply