button 썸네일형 리스트형 Grove - Button and LED Grove - Button and LED This example shows you how to turn on or off an LED via button. Hardware Required - Intel® Edison Module- Arduino* expansion board- Grove Base Shield v2- Grove Button(P)- Grove LED Socket Kit Circuit Schematic Code const int buttonPin = 3; // the number of the pushbutton pinconst int ledPin = 7; // the number of the LED pin // variables will change:int buttonState = 0; // .. 더보기 이전 1 다음