I'm collecting the various Micropython libraries (and drivers for various sensors and other devices) that I'm writing here. Some of them are specific to the ESP8266 port, some are general.
This time I wrote drivers for something that mostly already had its drivers in MicroPython — the monochrome OLED displays. I did that, because I wasn't happy with the existing drivers — they are a bit elaborate in terms of indirection and inheritance. Sure, code reuse and so on, but not very nice for constrained platforms. So I did my own, trying to optimize them. I also exposed some useful functions, like flipping and hardware scrolling.
I will hopefully add some more exotic displays there, as I get specimen to test on.
This is a collection of 6 different displays drivers for TFT and OLED RGB displays. I finally took the time to refactor all my drivers, pull out the common parts, and put them all in a single library. Don't worry, each driver is in a separate file, so you can copy only the parts that you are actually using onto your board.
As you can guess from the naming, I was supported by Adafruit Industries to write this one (but of course it will work with any breakout boards for those chips, not just theirs). I will most likely create more libraries for them.
This driver is for a monochromatic matrix of up to 144 LEDs, with hardware PWM and blinking. It also has 8 frames of memory, and can fade between them, or play animations with them -- optionally synchronized to music! The code is at https://bitbucket.org/thesheep/micropython-is31fl3731/src/tip/is31fl3731.py