강좌노트2 PWM #define PIN_PWM 9 int brightness = 0; int step = 5; void setup() { pinMode(PIN_PWM, OUTPUT); } void loop() { analogWrite(PIN_PWM, brightness); brightness += step; if ((brightness >= 255)|| (brightness 아두이노 2022. 1. 17. LED LED가 1초마다 깜빡깜빡거리는 예제 출처 : https://www.arduino.cc/en/Main/Products https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink 실행 파일 명 : Output_LED_Blink 아두이노 2022. 1. 17. 이전 1 다음