File tree 2 files changed +48
-3
lines changed
2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change
1
+ # 📙 디지털 출력
2
+
3
+ ### ✔ 아두이노 디지털 입출력
4
+
5
+ - 전압 0v-5v 읽고 쓸 수 있다
6
+
7
+ - on(5v, HIGH) off(0v, LOW)
8
+
9
+ - pinMode(pin, INPUT), pinMode(pin, OUTPUT)
10
+
11
+ - digitalRead(pin), digitalWrite(pin, value)
12
+
13
+ value : HIGH, LOW
14
+
15
+ ```
16
+ int led = 13;
17
+
18
+ void setup(){
19
+ pinMode(led, OUTPUT);
20
+ }
21
+ void loop(){
22
+ digitalWrite(led, HIGH);
23
+ delay(1000);
24
+ digitalWrite(led, LOW);
25
+ delay(1000);
26
+ }
27
+ ```
28
+
29
+ <br>
30
+ <br>
31
+
32
+ ### ✔ LED
33
+
34
+ - 다이오드
35
+
36
+ : 양극에서 음극으로 순방향 전류
37
+
38
+ - LED (발광 다이오드)
39
+
40
+ - 순방향 연결 -> 빛
41
+
42
+ - 다양한 색상의 빛
43
+
44
+ - 데이터 핀에 연결해 비트 단위 데이터 확인
45
+
46
+ - 핀 - 저항 - LED - GND
47
+
48
+ 
Original file line number Diff line number Diff line change 1
1
# 📙 직렬병렬회로
2
2
3
- ## 🌟
4
-
5
3
### ✔ 옴의 법칙
6
4
7
5
V = IR
8
6
9
-
10
7
<br >
11
8
<br >
12
9
You can’t perform that action at this time.
0 commit comments