Velxio
Offline Arduino, RP2040 & ESP32 simulator
Starting local backend…
Velxio
HomeDocumentationExamplesEditorAboutPricingFor schoolsDownloadBlogGitHubDiscord

Image to C array for OLED displays

Drop in a picture and get a monochrome C byte array you can paste straight into an Arduino sketch. Tune the threshold and dithering, then check the result on a simulated 128x64 SSD1306 before you flash it.

Image

Options

Fills padding and shows through transparent pixels.
Placement
Pixels brighter than this are lit on the display.
Transform
One bit per pixel, most significant bit first, each row padded to a whole byte. This is what display.drawBitmap() expects.

Pixel preview

On a 128x64 SSD1306

The bitmap is centred on the panel, exactly as the simulator would render it.

C byte array

0 bytes
display.drawBitmap(0, 0, myBitmap, 128, 64, SSD1306_WHITE);

Inspired by image2cpp by javl: github.com/javl/image2cpp