I have my eye animations working great but! my eyes don't blink, or move at the same time! how can I fix that? also, I would like to add random blinking. if anyone can help i would relly be thankful as it's for a Halloween alien mask to scare the trick or treaters lol
#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
void setup(){
}
void loop() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3D); //or 0x3C
display.clearDisplay(); //for Clearing the display
display.drawBitmap(0, 0, myBitmap1, 128, 64, WHITE); // display.drawBitmap(x position, y position, bitmap data, bitmap width, bitmap height, color)
display.display();
delay(500);
display.begin(SSD1306_SWITCHCAPVCC, 0x3D); //or 0x3C
display.clearDisplay(); //for Clearing the display
display.drawBitmap(0, 0, myBitmap2, 128, 64, WHITE); // display.drawBitmap(x position, y position, bitmap data, bitmap width, bitmap height, color)
display.display();
delay(500);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //or 0x3C
display.clearDisplay(); //for Clearing the display
display.drawBitmap(0, 0, myBitmap1, 128, 64, WHITE); // display.drawBitmap(x position, y position, bitmap data, bitmap width, bitmap height, color)
display.display();
delay(500);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //or 0x3C
display.clearDisplay(); //for Clearing the display
display.drawBitmap(0, 0, myBitmap2, 128, 64, WHITE); // display.drawBitmap(x position, y position, bitmap data, bitmap width, bitmap height, color)
display.display();
delay(500);
}