This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Simon Says game with LCD Display. | |
By Vineeth Balachnadran | |
*/ | |
#include <Tone.h> | |
#include <LiquidCrystal_I2C.h> | |
#include<Wire.h> | |
Tone speakerpin; | |
int starttune[] = {NOTE_C4, NOTE_F4, NOTE_C4, NOTE_F4, NOTE_C4, NOTE_F4, NOTE_C4, NOTE_F4, NOTE_G4, NOTE_F4, NOTE_E4, NOTE_F4, NOTE_G4}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void loop() | |
{ | |
binary(); | |
} | |
void binary () | |
{ | |
digitsum1 = digitalRead(digit1); | |
digitsum2 = digitalRead(digit2); |