Page 1 of 1

LCD driver for micro:bit

Posted: Sun May 13, 2018 3:51 pm
by rhubarbdog
Hi
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 https://github.com/rhubarbdog/microbit-LCD-driver

Re: LCD driver for micro:bit

Posted: Mon May 04, 2020 8:43 am
by pmulvey
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.