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