728x90 아두이노 LED2 [C++ Examples/Arduino] External LED 예제 및 설명 External LED 예제 및 설명 포스트 난이도: HOO_Junior # Example Code 이번 포스트는 코딩을 하지 않고 아두이노 보드를 사용해서 LED를 켜보는 예제코드이다. 코드로 작동하는 게 아니라 외부적인 요인으로 인해 LED 등이 작동되며 저항(Resistors)들을 달리하여 LED 등의 밝기를 비교해 볼 수 있다. # Explanations Figure 1에서 볼 수 있듯이 별도의 코딩 없이 LED등을 아두이노 보드를 통해서 킬 수 있다. 여기서 Main poiints는 Resistors들을 달리하여 LED 등의 변화를 살펴보는 것이다. 기본적으로 많이 사용되는 250부터 100K까지 직접 resistors들을 달리 설치해 보고 실행해 봄으로써 LED 밝기의 변화를 관찰할 수 있다... 2024. 1. 15. [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