Skip to content

Commit e4f6c75

Browse files
authored
shift in
1 parent 942f2b9 commit e4f6c75

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Language/Functions/Advanced IO/shiftIn.adoc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ subCategories: [ "고급 입출력" ]
1717

1818
[float]
1919
=== 설명
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] 를 제공하는데 그것은 하드웨어 구현을 사용하며, 그것은 빠르지만 특정 핀에서만 돌아간다.
2527
[%hardbreaks]
2628

2729

@@ -32,16 +34,16 @@ Note: this is a software implementation; Arduino also provides an link:https://w
3234

3335
[float]
3436
=== 매개변수
35-
`dataPin`: the pin on which to input each bit (int)
37+
`dataPin`: 각 비트에 입력할 핀 (int)
3638

37-
`clockPin`: the pin to toggle to signal a read from *dataPin*
39+
`clockPin`: *dataPin* 에서 읽은 시그널을 토글할 핀
3840

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*.
42+
(MSB 우선, 또는, LSB 우선)
4143

4244
[float]
4345
=== 반환
44-
the value read (byte)
46+
읽은 값 (byte)
4547

4648
--
4749
// OVERVIEW SECTION ENDS

0 commit comments

Comments
 (0)