daeun

a

......@@ -11,14 +11,9 @@ int time = 0;
int data[] = { 0,0,0,0,0,0 };
int state = 2;
int KeypadRead()
{
int KeypadRead(){
int i, keypadnum = -1;
for (i = 0; i < 3; i++) {
if (!digitalRead(Keypad[i])) {
state = 1;
keypadnum = i; break;
}
if (!digitalRead(Keypad[0])) {
}
return keypadnum;
}
......@@ -56,7 +51,6 @@ void timer() {
}
}
void stop() {
timer();
state = 1;
}
void reset() {
......@@ -106,7 +100,7 @@ int main(){
timer();
}
}
else if (state > 0) {
else {
while (1) {
timer();
}
......