아두이노에서 인터럽트와 폴링 방식중에서 폴링방식으로 숫자를 카운트해서 올림 포토커플러를 사용하여 핀에 인풋을 넣어줌 int LED = 25; int SW1 = 13; int SW2 = 12; int SW3 = 14; int DI0 = 26; int AI0 = 36; int x ; int val ; volatile boolean gLedState1 = LOW; volatile boolean gLedState2 = LOW; HardwareSerial dfSerial(2); int buttonPushCounter = 0; // counter for the number of button presses int buttonState = 0; // current state of the button int lastBu..