I ported my 7110 LCD C code for PIC to MicroPython on the PyBoard. It wasn't very difficult. Yet again, most of the trouble I had was due to having to learn Python as I ported the code. Not a big deal - Python isn't difficult to learn.

I wasn't sure about text formatting for my font array in Python, so I turned it into the big blob (one long line) you see below. Now that I have the code working I may tinker a bit and see if I can get it formatted to be more readable.

Video of the 7110 LCD driven by the PyBoard:

I fought with my graphic code for quite a while before finally figuring out the Python way. I could not get it to work properly for the longest time. First problem was figuring out that the way Python handles global variables is... odd. Nothin wrong with it - it's just unusual.

Then I had to figure out how to deal with negative numbers, which Python does completely differently than C does. I eventually realized that I was only using the negative numbers to do a ones complement for a mask to clear pixels, so I didn't need to do it the C way at all. Rewrote those bits of code and cured that problem. Easy, but took forever to find the problem.

Then I decided to change from using arrays to native Python lists for the frame buffers. Easier, and works just as well.

The code works well. It's not blazing fast, but good enough for what it is. If I cared there are things I could do to improve the speed some.

Here's video of the demo:

Here's the MicroPython PyBoard code to do text on the 7110 LCD. Scroll down past it to see the graphic demo code.: