Skip to content

Commit 859eaa8

Browse files
authored
Merge pull request #23 from sebuls/master
kbd by Lukious, shiftin by Sebul
2 parents f470a61 + eadb8f5 commit 859eaa8

File tree

3 files changed

+35
-31
lines changed

3 files changed

+35
-31
lines changed

Language/Functions/Advanced IO/shiftIn.adoc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ 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+
주의: 이것은 소프트웨어 구현임;
25+
아두이노는 link:https://www.arduino.cc/en/Reference/SPI[SPI library] 를 제공하는데 그것은 하드웨어 구현을 사용하며, 그것은 빠르지만 특정 핀에서만 돌아간다.
2526
[%hardbreaks]
2627

2728

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

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

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

39-
`bitOrder`: which order to shift in the bits; either *MSBFIRST* or *LSBFIRST*.
40-
(Most Significant Bit First, or, Least Significant Bit First)
40+
`bitOrder`: 비트들 안에서 어떤 순서로 옮길지; *MSBFIRST* 또는 *LSBFIRST*.
41+
(MSB 우선, 또는, LSB 우선)
4142

4243
[float]
4344
=== 반환
44-
the value read (byte)
45+
읽은 값 (byte)
4546

4647
--
4748
// OVERVIEW SECTION ENDS

Language/Functions/Advanced IO/shiftOut.adoc

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ categories: [ "Functions" ]
44
subCategories: [ "고급 입출력" ]
55
---
66

7+
8+
9+
10+
711
= shiftOut()
812

913

@@ -13,40 +17,40 @@ subCategories: [ "고급 입출력" ]
1317

1418
[float]
1519
=== 설명
16-
Shifts out a byte of data one bit at a time. Starts from either the most (i.e. the leftmost) or least (rightmost) significant bit. Each bit is written in turn to a data pin, after which a clock pin is pulsed (taken high, then low) to indicate that the bit is available.
17-
18-
Note- 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 call to `shiftOut()`, e.g. with a call to `digitalWrite(clockPin, LOW)`.
19-
20-
This is a software implementation; see also the linkhttps://www.arduino.cc/en/Reference/SPI[SPI library], which provides a hardware implementation that is faster but works only on specific pins.
20+
한번에 한 비트씩의 바이트를 옮긴다.
21+
최고(가장 왼쪽) 또는 최저(가장 오른쪽) 비트부터 시작한다.
22+
각 비트에, 클락 핀은 하이로 풀 되고, 다음 비트는 데이터 라인에서 읽히고, 클락 핀은 로우 된다.
23+
각 비트는 차례로 데이터 핀에 써지며, 각 클락 핀이 펄스되어(high 되면, low) 비트가 사용가능함을 가리킨다.
24+
주의 - 올라가는 에지에 의해 클락되는 장치와 인터페이스하면, `shiftOut()` 이 불리기 전에 클락 핀이 로우되는, 예를 들어 `digitalWrite(clockPin, LOW)`, 것을 확인해야 한다.
25+
26+
이것은 소프트웨어 구현임;
27+
아두이노는 link:https://www.arduino.cc/en/Reference/SPI[SPI library] 를 제공하는데 그것은 하드웨어 구현을 사용하며, 그것은 빠르지만 특정 핀에서만 돌아간다.
2128
[%hardbreaks]
2229

2330

2431
[float]
2532
=== 문법
2633
`shiftOut(dataPin, clockPin, bitOrder, value)`
2734

28-
2935
[float]
3036
=== 매개변수
31-
`dataPin`: the pin on which to output each bit (int)
37+
`dataPin`: 각 비트에 입력할 핀 (int)
3238

33-
`clockPin`: the pin to toggle once the dataPin has been set to the correct value (int)
39+
`clockPin`: dataPin 이 옳은 값(int) 로 맞추어지면 토글할 핀
3440

35-
`bitOrder`: which order to shift out the bits; either MSBFIRST or LSBFIRST.
36-
(Most Significant Bit First, or, Least Significant Bit First)
41+
`bitOrder`: 비트들 안에서 어떤 순서로 옮길지; *MSBFIRST* 또는 *LSBFIRST*.
42+
(MSB 우선, 또는, LSB 우선)
3743

38-
`value`: the data to shift out. (byte)
44+
`value`: 옮길 자료. (byte)
3945

4046
[float]
4147
=== 반환
42-
Nothing
48+
없음
4349

4450
--
4551
// OVERVIEW SECTION ENDS
4652

4753

48-
49-
5054
// HOW TO USE SECTION STARTS
5155
[#howtouse]
5256
--
@@ -98,7 +102,7 @@ void loop() {
98102

99103
[float]
100104
=== 주의와 경고
101-
The dataPin and clockPin must already be configured as outputs by a call to link:../../digital-io/pinmode[pinMode()].
105+
dataPin clockPin link:../../digital-io/pinmode[pinMode()] 을 불러서 이미 output 로 설정되어야 함.
102106

103107
shiftOut is currently written to output 1 byte (8 bits) so it requires a two step operation to output values larger than 255.
104108
[source,arduino]

Language/Functions/USB/Keyboard/keyboardPrint.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ title: Keyboard.print()
1313
--
1414

1515
[float]
16-
=== 설명
17-
Sends a keystroke to a connected computer.
16+
=연결된 컴퓨터에 입력키를 보냅니다.
1817

19-
`Keyboard.print()` must be called after initiating link:../keyboardbegin[Keyboard.begin()].
18+
`Keyboard.print()`link:../keyboardbegin[Keyboard.begin()]을 시작한 후에 호출해야 합니다.
2019
[%hardbreaks]
2120

2221

@@ -27,11 +26,11 @@ Sends a keystroke to a connected computer.
2726

2827
[float]
2928
=== 매개변수
30-
`character` : a char or int to be sent to the computer as a keystroke characters : a string to be sent to the computer as a keystroke.
29+
`character` :char 또는 int는 키입력한 문자로 컴퓨터에 전송됩니다. 키입력으로 컴퓨터에 전송할 문자열입니다.
3130

3231
[float]
3332
=== 반환
34-
`size_t` : number of bytes sent.
33+
`size_t` : 바이트의 수가 보내집니다.
3534

3635
--
3736
// OVERVIEW SECTION ENDS
@@ -72,7 +71,7 @@ void loop() {
7271

7372
[float]
7473
=== 주의와 경고
75-
When you use the `Keyboard.print()` command, the Arduino takes over your keyboard! Make sure you have control before you use the command. A pushbutton to toggle the keyboard control state is effective.
74+
`Keyboard.print()`명령을 사용하면 오직 Arduino가 키보드를 조절합니다. 명령을 사용하기 전에 제어권이 있는지 확인하십시오. 키보드 컨트롤 상태를 토글하는 푸시 버튼이 효과적입니다..
7675

7776
--
7877
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)