commands:reference:iclcdcursor
문서의 이전 판입니다!
목차
IclcdCursor()
명령어
| 명령어 | 인수 | 반환값 | 동작 |
|---|---|---|---|
IclcdCursor(on, device) | bool on = trueuint8_t device = 0 | bool | 커서 표시를 켜거나 끕니다. |
예제
bool IclcdBegin(uint8_t address, uint8_t columns, uint8_t rows, bool backlight = true, uint8_t device = 0); bool IclcdClear(uint8_t device = 0); bool IclcdHome(uint8_t device = 0); bool IclcdSetCursor(uint8_t column, uint8_t row, uint8_t device = 0); bool IclcdDisplay(bool on = true, uint8_t device = 0); bool IclcdCursor(bool on = true, uint8_t device = 0); bool IclcdBlink(bool on = true, uint8_t device = 0); bool IclcdBacklight(bool on = true, uint8_t device = 0); bool IclcdScrollLeft(uint8_t device = 0); bool IclcdScrollRight(uint8_t device = 0); bool IclcdTextDirection(bool leftToRight = true, uint8_t device = 0); bool IclcdAutoscroll(bool on = true, uint8_t device = 0); bool IclcdCreateChar(uint8_t location, const uint8_t charmap[8], uint8_t device = 0); bool IclcdWrite(uint8_t value, uint8_t device = 0); bool IclcdCommand(uint8_t command, uint8_t device = 0); bool IclcdPrint(...);
주의사항
- PCF8574 연결은 기존 CLCD 라이브러리와 같은 매핑을 사용합니다: P0=RS, P1=R/W, P2=Enable, P3=백라이트, P4~P7=LCD D4~D7.
- LCD 모듈의 실제 I²C 주소는 모듈 설정과 I²C 스캔 결과로 확인해야 합니다.
- SDA/SCL은 다른 I²C 장치와 버스를 공유할 수 있지만 주소가 중복되면 안 됩니다.
Iclcd…()실행 중에Wire전송이나 I²C 슬레이브 콜백을 동시에 실행하지 마십시오. Iclcd 전송은 100 kHz로 수행한 뒤 기존 TWI 설정을 복원합니다.- MPAINO에서 D20/D21을 외부 인터럽트로 사용하면 I²C와 동시에 사용할 수 없습니다.
IclcdCommand()는 LCD 상태를 직접 바꿀 수 있으므로 HD44780 명령을 알고 있을 때만 사용하십시오.
commands/reference/iclcdcursor.1788260661.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
