//www.diyusthad.com
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RESET);
//Paste your bitmap here
// 'R32 Turbo icon', 42x33px
const unsigned char epd_bitmap_R32_Turbo_icon [] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xbe, 0xa0, 0x00,
0x00, 0x00, 0x0f, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0xe1, 0x8e, 0x00, 0x00,
0x00, 0x00, 0xf9, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x79, 0xc3, 0x80, 0x00, 0x00, 0x00, 0x39, 0xc3,
0x80, 0x00, 0x1e, 0x0f, 0xff, 0xc1, 0xc0, 0x00, 0x3f, 0x1f, 0xff, 0x88, 0xc0, 0x00, 0x1f, 0x03,
0xff, 0x9c, 0xc0, 0x00, 0x03, 0x03, 0xc3, 0xf8, 0xc0, 0x00, 0x03, 0x03, 0xc3, 0xf8, 0xe0, 0x00,
0x03, 0x0f, 0xc1, 0xf0, 0xe0, 0x00, 0x03, 0x9f, 0xc3, 0xc0, 0xe0, 0x00, 0x03, 0x9f, 0xe7, 0xc0,
0xe0, 0x00, 0x03, 0x99, 0xff, 0xf8, 0xfc, 0x00, 0x01, 0x81, 0xff, 0xf8, 0xfc, 0x00, 0x01, 0xc1,
0xfe, 0x60, 0x00, 0x00, 0x01, 0xc1, 0x9c, 0x00, 0x00, 0x00, 0x00, 0xe1, 0x9e, 0x00, 0x00, 0x00,
0x00, 0x71, 0x8f, 0x00, 0x00, 0x00, 0x00, 0x78, 0x03, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00,
0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
void setup(){
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //or 0x3D
display.clearDisplay(); //for Clearing the display
display.drawBitmap(40, 20, epd_bitmap_R32_Turbo_icon, 42, 33, WHITE); // display.drawBitmap(x position, y position, bitmap data, bitmap width, bitmap height, color)
display.display();
}
void loop() { }