You don't need to translate it, I originally wrote that driver for MicroPython, you can find that version here: https://github.com/adafruit/micropython ... gb-display
You will need MicroPython version older than 1.9.1, because in 1.9.1 the machine API is broken and won't work with this driver.
Displaying bitmap graphics on OLED
Re: Displaying bitmap graphics on OLED
Apologies for reviving this thread. I was looking for options to show image on my esp8266+ssdl1303 (i2c) running micropython and came up with this thread. Googling further, I found URL where you can upload a b/w image and convert it to hex which you can use with the example above.
It works well, you just need to change the framebuffer parameter to framebuf.MONO_HLSB.
Here's the link: http://www.digole.com/tools/PicturetoC_ ... verter.php
It works well, you just need to change the framebuffer parameter to framebuf.MONO_HLSB.
Here's the link: http://www.digole.com/tools/PicturetoC_ ... verter.php