Image to Binary Array converter for Photon OLED

I got started with the Maker kit a few days ago, and have been playing around with the OLED display. One of the features of the library is displaying bitmaps, however I couldn’t find any docs on doing this.

I found a tool online to convert images to a hex array, however the library requires binary literals, so I’ve built a quick tool to convert that hex to the required binary and format it nicely.

You can see the code at

To use it, copy and paste the hex only, without the trailing comma on the last element into my tool and hit convert.


Check out the xbm and xpm formats. You can use popular art software to load, edit, and save the files directly.