daeun

mid

......@@ -79,16 +79,15 @@ void init() {
}
for (i = 0; i < 3; i++)
pinMode(Keypad[i], INPUT);
}
int main(){
init();
if (wiringPiISR(Keypad[1], INT_EDGE_FALLING, &stop) < 0) {
return 1;
}
if (wiringPiISR(Keypad[2], INT_EDGE_FALLING, &reset) < 0) {
return 1;
}
}
int main(){
init();
if (KeypadRead() == 0) {
state = 0;
unsigned long prevtime = millis();
......