#include #include #include #include #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) // The pins for I2C are defined by the Wire-library. // On an arduino UNO: A4(SDA), A5(SCL) // On an arduino MEGA 2560: 20(SDA), 21(SCL) // On an arduino LEONARDO: 2(SDA), 3(SCL), ... #define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin) #define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); // OLED Animation: aircraft // Code auto-generated by https://wokwi.com/animator, graphics by icons8.com // 'logo', 128x64px const unsigned char myBitmaplogo [] PROGMEM = { 0x00, 0x00, 0x00, 0x7f, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xf9, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xff, 0xe0, 0x7f, 0xf0, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0, 0x3f, 0xf8, 0x00, 0x00, 0x00, 0x07, 0xff, 0x00, 0x0f, 0xfe, 0x00, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x07, 0xff, 0x00, 0x00, 0x00, 0x1f, 0xff, 0x00, 0x01, 0xff, 0x80, 0x00, 0x00, 0x3f, 0xff, 0xce, 0x00, 0x7f, 0xc0, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xc0, 0x1f, 0xc0, 0x00, 0x00, 0x7f, 0x1f, 0xff, 0xf8, 0x0f, 0xe0, 0x00, 0x00, 0x7c, 0x07, 0xff, 0xf8, 0x01, 0xe0, 0x00, 0x00, 0x10, 0x03, 0xff, 0xf8, 0x00, 0x80, 0x00, 0x00, 0x00, 0x03, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x01, 0x80, 0x03, 0xff, 0xf8, 0x00, 0x18, 0x00, 0x03, 0xc0, 0x03, 0xff, 0xf8, 0x00, 0x3c, 0x00, 0x03, 0xc0, 0x01, 0xff, 0xf8, 0x00, 0x3c, 0x00, 0x03, 0xc0, 0x00, 0xff, 0xe0, 0x00, 0x3e, 0x00, 0x07, 0xc0, 0x00, 0x3f, 0x80, 0x00, 0x3e, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x0f, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x0f, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x0f, 0xc0, 0xf8, 0x00, 0x00, 0xf9, 0xff, 0x00, 0x0f, 0xc1, 0xfc, 0x00, 0x03, 0xff, 0xff, 0x00, 0x0f, 0xc3, 0xfe, 0x00, 0x07, 0xff, 0xff, 0x00, 0x0f, 0xc3, 0xff, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x0f, 0xc3, 0xff, 0x80, 0x1f, 0xff, 0xff, 0x00, 0x0f, 0xc3, 0xff, 0x80, 0x1f, 0xff, 0xff, 0x00, 0x07, 0xc3, 0xff, 0xc0, 0x1f, 0xff, 0x3e, 0x00, 0x07, 0xc3, 0xff, 0xc0, 0x1f, 0xfc, 0x3e, 0x00, 0x07, 0xc1, 0xff, 0xc0, 0x3f, 0xfc, 0x3e, 0x00, 0x07, 0xc1, 0xff, 0xc0, 0x3f, 0xf8, 0x3e, 0x00, 0x03, 0xc0, 0xff, 0xc0, 0x3f, 0xf8, 0x3c, 0x00, 0x03, 0xc0, 0xff, 0xc0, 0x3f, 0xf0, 0x3c, 0x00, 0x01, 0xc0, 0x7f, 0xc0, 0x3f, 0xe0, 0x38, 0x00, 0x01, 0xc0, 0x7f, 0xc0, 0x1f, 0x80, 0x38, 0x00, 0x00, 0xf0, 0x7f, 0x80, 0x0f, 0x00, 0xf0, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x7c, 0x7f, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x00, 0x3f, 0xff, 0x00, 0x00, 0x0f, 0xc0, 0x00, 0x00, 0x1f, 0xff, 0x00, 0x00, 0x3f, 0xc0, 0x00, 0x00, 0x1f, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x01, 0xff, 0x80, 0x00, 0x00, 0x07, 0xff, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x03, 0xff, 0xc0, 0x1f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0xff, 0xe0, 0x7f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xf8, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xf8, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xf8, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // Array of all bitmaps for convenience. (Total bytes used to store images in PROGMEM = 1040) const int myBitmapallArray_LEN = 1; const unsigned char* myBitmapallArray[1] = { myBitmaplogo }; void setup() { display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS); display.clearDisplay(); display.setTextSize(1); //Set the text size display.setTextColor(WHITE); //Set text color display.setCursor(60,10); //Set's ther cursor initial position display.print("Fab Academy"); display.setCursor(70,30); //Set's ther cursor initial position display.print("Week 9!"); delay(2000); } void loop() { display.drawBitmap(0,8,myBitmaplogo,60,60,WHITE); display.display(); }