|
|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
// Rename this file later to main.cpp
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <LiquidCrystal_I2C.h>
|
|
|
|
|
#include <ESP8266WiFi.h>
|
|
|
|
|
@ -21,18 +23,11 @@ void setup(){
|
|
|
|
|
pinMode(buzzerPin, OUTPUT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void loop(){
|
|
|
|
|
// LCD
|
|
|
|
|
// set cursor to first column, first row
|
|
|
|
|
lcd.setCursor(0, 0);
|
|
|
|
|
// print message
|
|
|
|
|
lcd.print("Piss off, ghosts!");
|
|
|
|
|
// clears the display to print new message
|
|
|
|
|
lcd.clear();
|
|
|
|
|
|
|
|
|
|
// buzzer
|
|
|
|
|
void loop(){
|
|
|
|
|
digitalWrite(buzzerPin, HIGH);
|
|
|
|
|
lcd.print("Piss off, ghosts!");
|
|
|
|
|
delay(1000);
|
|
|
|
|
lcd.clear();
|
|
|
|
|
digitalWrite(buzzerPin, LOW);
|
|
|
|
|
delay(1000);
|
|
|
|
|
}
|