728x90 아두이노 if문1 [C++ Examples/Arduino] Digital Inputs and If Statements 예제코드 및 설명 Digital Inputs by Using Led and Buttons (If Statements) 예제코드 및 설명 포스트 난이도: HOO_Junior # Example Code int ledPin = 5; int buttonApin = 9; int buttonBpin = 8; //byte leds = 0; void setup() { // put your setup code here, to run once: pinMode(ledPin, OUTPUT); pinMode(buttonApin, INPUT_PULLUP); pinMode(buttonBpin, INPUT_PULLUP); } void loop() { // put your main code here, to run repeatedly: if (digit.. 2024. 1. 15. 이전 1 다음 728x90