Displaying a small bitmap image on a Core!

Hello all,

I have a SERIAL OLED SCREEN ,0.96" connected to a core and I would like to display a bitmap image or the following.

const unsigned char PROGMEM = {
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00,
  0x00, 0xc0, 0xff, 0xff, 0x03, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x1f, 0x00,
  0x00, 0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00,
  0x80, 0xff, 0xff, 0xff, 0xff, 0x01, 0xc0, 0xff, 0x01, 0x80, 0xff, 0x03,
  0xe0, 0x7f, 0x00, 0x00, 0xfe, 0x07, 0xe0, 0x1f, 0x00, 0x00, 0xfe, 0x07,
  0xf0, 0x07, 0x00, 0x00, 0xff, 0x0f, 0xf8, 0x03, 0x00, 0x80, 0xff, 0x1f,
  0xf8, 0x03, 0x00, 0xc0, 0xff, 0x1f, 0xf8, 0x01, 0x00, 0xe0, 0xff, 0x1f,
  0xfc, 0x00, 0x00, 0xf0, 0x3f, 0x3f, 0xfc, 0x00, 0x00, 0xf8, 0x1f, 0x3f,
  0xfc, 0x00, 0x00, 0xfc, 0x0f, 0x3f, 0x7c, 0x00, 0x00, 0xfe, 0x07, 0x3e,
  0x7e, 0x00, 0x00, 0xff, 0x03, 0x7e, 0x7e, 0x00, 0x80, 0xff, 0x01, 0x7e,
  0x7e, 0x00, 0xc0, 0xff, 0x00, 0x7e, 0x7e, 0x00, 0xe0, 0x7f, 0x00, 0x7e,
  0x7e, 0x00, 0xf0, 0x3f, 0x00, 0x7e, 0x7e, 0x00, 0xf8, 0x1f, 0x00, 0x7e,
  0x7e, 0x00, 0xfc, 0x0f, 0x00, 0x7e, 0x7e, 0x00, 0xfe, 0x07, 0x00, 0x7e,
  0x7e, 0x00, 0xff, 0x03, 0x00, 0x7e, 0x7e, 0x80, 0xff, 0x01, 0x00, 0x7e,
  0x7e, 0xc0, 0xff, 0x00, 0x00, 0x7e, 0x7e, 0xe0, 0x7f, 0x00, 0x00, 0x7e,
  0x7c, 0xf0, 0x3f, 0x00, 0x00, 0x3e, 0xfc, 0xf8, 0x1f, 0x00, 0x00, 0x3f,
  0xfc, 0xfc, 0x0f, 0x00, 0x00, 0x3f, 0xfc, 0xfe, 0x07, 0x00, 0x00, 0x3f,
  0xf8, 0xff, 0x03, 0x00, 0x80, 0x1f, 0xf8, 0xff, 0x01, 0x00, 0x80, 0x1f,
  0xf8, 0xff, 0x00, 0x00, 0xc0, 0x1f, 0xf0, 0x7f, 0x00, 0x00, 0xe0, 0x0f,
  0xe0, 0x3f, 0x00, 0x00, 0xf0, 0x07, 0xe0, 0x3f, 0x00, 0x00, 0xfc, 0x07,
  0xc0, 0xff, 0x00, 0x80, 0xff, 0x03, 0x80, 0xff, 0x3f, 0xfc, 0xff, 0x01,
  0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x3f, 0x00,
  0x00, 0xf8, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x03, 0x00,
  0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

any help will be very much appreciated. thank you

Seeing as this is the troubleshooting section, what’s the problem? And what have you tried?

Hello Jordy,

Sorry a mistake on my behalf, I should have posted it as general topic. I have included the following library
#include "SparkFunMicroOLED/SparkFunMicroOLED.h"

and tested out a demo program. It works okay. However, my goal is to display a small bitmap image. I ve seen adruino libraries that included drawbitmap(). i just want to display the small image for a couple seconds and then clear the screen.

Thank you again Jordy

In that library you’ll find a methode void drawBitmap(const uint8_t * bitArray);.

Just pass in the array and see what happens, since that function would expect a 384byte (64x48 pixels/bits).


BTW: I altered the category to General

1 Like

Thank you ScruffR, I really appreciate it