// Lenas chicken coop circuit #1
#include "oled.h" //load the oled with Adafruit_SSD1306.h library
//############
int L2 = 2; //LED 2 on PIN 2
int L3 = 3; //LED 3 on PIN 3
int Motor = 6; //White LED on Pin 6
void setup() {
setup_oled(); // Start the OLED Display
OLED_TXT("HELLO!:D");
sdelay(1500);
}
void loop() {
display_counter(HIGH); //NEEDED FOR DISPLAY TO WORK ## ALL LOOP CODE UNDER THIS
zerocounter(20); // ZERO the counter loop after 20secs
//put your code in here
while(digitalRead(A0)==LOW){
digitalWrite(Motor, HIGH); //Tiny LED on Pin 13 on board
OLED_TXT("Motor on");
sdelay(2000);
OLED_TXT("Motor off");
digitalWrite(Motor, LOW);
sdelay(100);
}
}