Take off

블로그 이미지
by 안.들
  • Total hit
  • Today hit
  • Yesterday hit

refer to the site : https://www.youtube.com/watch?v=YWY_Is0L7fE

아듀이노 led 샘플.

코드
---------------------------------------------------------

int LED = 12;

int BUTTON = 4;


void setup() {

  // put your setup code here, to run once:

pinMode(LED, OUTPUT);

pinMode(BUTTON, INPUT);

}


void loop() {

  // put your main code here, to run repeatedly:

if(digitalRead(BUTTON) == HIGH)

{

     digitalWrite(LED,HIGH);

}

else

{

digitalWrite(LED,LOW);

}

}

---------------------------------------------------------





AND

ARTICLE CATEGORY

분류 전체보기 (66)
금융 (0)
관제 (4)
Unix (1)
Android (6)
Windows (2)
Java (4)
oracle (3)
web (3)
English (3)
Physics (1)
Books (6)
요리 (1)
Deep Learning (6)
IoT (21)
to-do list (0)
Music (1)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

ARCHIVE