You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Language/Functions/Advanced IO/shiftIn.adoc
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,13 @@ subCategories: [ "고급 입출력" ]
17
17
18
18
[float]
19
19
=== 설명
20
-
Shifts in a byte of data one bit at a time. Starts from either the most (i.e. the leftmost) or least (rightmost) significant bit. For each bit, the clock pin is pulled high, the next bit is read from the data line, and then the clock pin is taken low.
21
-
22
-
If you're interfacing with a device that's clocked by rising edges, you'll need to make sure that the clock pin is low before the first call to `shiftIn()`, e.g. with a call to `digitalWrite(clockPin, LOW)`.
23
-
24
-
Note: this is a software implementation; Arduino also provides an link:https://www.arduino.cc/en/Reference/SPI[SPI library] that uses the hardware implementation, which is faster but only works on specific pins.
20
+
한번에 한 비트씩의 바이트를 옮긴다.
21
+
최고(가장 왼쪽) 또는 최저(가장 오른쪽) 비트부터 시작한다.
22
+
각 비트에, 클락 핀은 하이로 풀 되고, 다음 비트는 데이터 라인에서 읽히고, 클락 핀은 로우 된다.
23
+
올라가는 에지에 의해 클락되는 장치와 인터페이스하면, `shiftIn()` 이 불리기 전에 클락 핀이 로우되는, 예를 들어 `digitalWrite(clockPin, LOW)`, 것을 확인해야 한다.
24
+
Note: this is a software implementation;
25
+
주의: 이것은 소프트웨어 구현임;
26
+
아두이노는 link:https://www.arduino.cc/en/Reference/SPI[SPI library] 를 제공하는데 그것은 하드웨어 구현을 사용하며, 그것은 빠르지만 특정 핀에서만 돌아간다.
25
27
[%hardbreaks]
26
28
27
29
@@ -32,16 +34,16 @@ Note: this is a software implementation; Arduino also provides an link:https://w
32
34
33
35
[float]
34
36
=== 매개변수
35
-
`dataPin`: the pin on which to input each bit (int)
37
+
`dataPin`: 각 비트에 입력할 핀 (int)
36
38
37
-
`clockPin`: the pin to toggle to signal a read from *dataPin*
39
+
`clockPin`: *dataPin* 에서 읽은 시그널을 토글할 핀
38
40
39
-
`bitOrder`: which order to shift in the bits; either *MSBFIRST* or *LSBFIRST*.
40
-
(Most Significant Bit First, or, Least Significant Bit First)
41
+
`bitOrder`: 비트들 안에서 어떤 순서로 옮길지; *MSBFIRST* 또는 *LSBFIRST*.
0 commit comments