commands:reference:iton
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| commands:reference:iton [2026/09/01 20:04] – 만듦 - 바깥 편집 127.0.0.1 | commands:reference:iton [2026/09/14 20:30] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Iton() ====== | ====== Iton() ====== | ||
| - | '' | + | '' |
| {{: | {{: | ||
| 줄 10: | 줄 10: | ||
| ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ||
| - | | '' | + | | '' |
| ===== 예제 ===== | ===== 예제 ===== | ||
| + | |||
| + | MPINO-8A4R(T)-S 보드를 선택한 예제입니다. '' | ||
| <code cpp> | <code cpp> | ||
| - | void loop() { | + | const uint8_t INPUT_PIN |
| - | bool run = digitalRead(0); | + | const uint8_t OUTPUT_PIN = 32; |
| - | if (Iton(40, run, 1000)) { | + | void setup() {} |
| - | | + | |
| - | | + | void loop() { |
| - | digitalWrite(13, LOW); | + | const bool inputOn = digitalRead(INPUT_PIN) == HIGH; |
| - | } | + | |
| + | digitalWrite(OUTPUT_PIN, outputOn ? HIGH : LOW); | ||
| } | } | ||
| </ | </ | ||
| 줄 28: | 줄 32: | ||
| ===== 주의사항 ===== | ===== 주의사항 ===== | ||
| - | 이 명령어는 | + | * 타이머 명령어는 '' |
| + | * 같은 | ||
| + | |||
| + | ===== 같은 카테고리의 내장 명령어 ===== | ||
| + | |||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| [[commands: | [[commands: | ||
commands/reference/iton.1788260660.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
