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
LCD driver for micro:bit
Re: LCD driver for micro:bit
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