daeun

mid

...@@ -79,16 +79,15 @@ void init() { ...@@ -79,16 +79,15 @@ void init() {
79 } 79 }
80 for (i = 0; i < 3; i++) 80 for (i = 0; i < 3; i++)
81 pinMode(Keypad[i], INPUT); 81 pinMode(Keypad[i], INPUT);
82 - 82 +}
83 +int main(){
84 + init();
83 if (wiringPiISR(Keypad[1], INT_EDGE_FALLING, &stop) < 0) { 85 if (wiringPiISR(Keypad[1], INT_EDGE_FALLING, &stop) < 0) {
84 return 1; 86 return 1;
85 } 87 }
86 if (wiringPiISR(Keypad[2], INT_EDGE_FALLING, &reset) < 0) { 88 if (wiringPiISR(Keypad[2], INT_EDGE_FALLING, &reset) < 0) {
87 return 1; 89 return 1;
88 } 90 }
89 -}
90 -int main(){
91 - init();
92 if (KeypadRead() == 0) { 91 if (KeypadRead() == 0) {
93 state = 0; 92 state = 0;
94 unsigned long prevtime = millis(); 93 unsigned long prevtime = millis();
......