commands:reference:itpl
문서의 이전 판입니다!
Itpl()
Itpl()는 (Pulse Timer) 조건이 ON되는 순간부터 설정 시간 동안 true를 반환합니다.
bool Itpl(uint8_t timer_id, bool state, unsigned long delayTime)
명령어
| 명령어 | 인수 | 반환값 | 동작 |
|---|---|---|---|
Itpl(timer_id, state, delayTime) | uint8_t timer_id — 타이머 번호. 0 ~ 255 범위에서 사용 가능bool state — 타이머 입력 상태unsigned long delayTime — 설정 시간. 단위는 ms | bool | (Pulse Timer) 조건이 ON되는 순간부터 설정 시간 동안 true를 반환합니다. |
예제
bool Iton(uint8_t timer_id, bool state, unsigned long delayTime); bool Itof(uint8_t timer_id, bool state, unsigned long delayTime); bool Itpl(uint8_t timer_id, bool state, unsigned long delayTime); 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); unsigned long IgetTime(uint8_t timer_id); bool IgetState(uint8_t timer_id);
주의사항
이 명령어는 프로그램을 멈추지 않습니다. 매 loop()에서 호출하고 타이머마다 고유한 id를 사용하십시오.
commands/reference/itpl.1788260660.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
