[따라하기] 아두이노 기초 – 초음파센서 사용하기 by ODIY 한국과학창의재단 Ardunio – Ultrasound sensor with LED https://vimeo.com/207270128 #define TRIG 2 // Sending out ultrasound #define ECHO 3 // Receiving ultrasound #define LED 9 // Controlling LED void setup() { // put your setup code here, to run once: pinMode(TRIG,…
Category: Arduino
[따라하기] 아두이노 기초 – LED와 버튼 제어하기 by ODIY 한국과학창의재단
[따라하기] 아두이노 기초 – LED와 버튼 제어하기 by ODIY 한국과학창의재단 Arduino – LED Wave https://vimeo.com/206546319 #define DELAY_TIME 100 void setup() { // put your setup code here, to run once: pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); } void loop() { // put your main code…