You are reading a single comment by @Wilberforce and its replies.
Click here to read the full conversation.
-
The xbm (X bitmap) format might be of use. It's monochrome and is like a declaration in c that you could convert to JavaScript, the output is text:
https://en.m.wikipedia.org/wiki/X_BitMap
[#define](https://forum.espruino.com/search/?q=%23define) test_width 16 [#define](https://forum.espruino.com/search/?q=%23define) test_height 7 static char test_bits[] = { 0x13, 0x00, 0x15, 0x00, 0x93, 0xcd, 0x55, 0xa5, 0x93, 0xc5, 0x00, 0x80, 0x00, 0x60 };
Hello, I've been looking around for a way to generate an array to store images in for use on an OLED, and while there are lots of results on Google, I don't seem to be able to find anything suitable that works for me.
I have a monochrome bitmap that I would like to convert to an array that I can put on the Pico. It feels like it should be very simple, but I am not having much luck getting them to work. Any tips/ideas? I am using ImageMagick on os x if anyone has an idea on how to use that to achieve it.