#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <ArduinoTrace.h>
#include "image.h" // Bitmap of MarilynMonroe Image
#include "image2.h"
#include "image3.h"
#include "image4.h"
//----------------- OLED ----------------------------------------------
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup()
{
Serial.begin(9600);
//------ initialize and clear display ---------------------
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
Serial.println(F("SSD1306 allocation failed"));
for (;;);
}
// Clear the buffer.
display.clearDisplay();
// Display bitmap
display.drawBitmap(5, 3,logo_bmp, 32, 32, WHITE);
display.drawBitmap(80, 3,logo2_bmp, 32, 32, WHITE);
display.drawBitmap(5, 32,logo3_bmp, 32, 32, WHITE);
display.drawBitmap(80, 32,logo4_bmp, 32, 32, WHITE);
display.display();
}
//============== LOOP ================
void loop() {
}