목차

IclcdSetCursor()

IclcdSetCursor()는 커서를 지정한 열과 행으로 이동합니다.

IclcdSetCursor 명령어 동작 흐름

bool IclcdSetCursor(uint8_t column, uint8_t row, uint8_t device = 0)

명령어

명령어 인수 반환값 동작
IclcdSetCursor(column, row, device) uint8_t column
uint8_t row
uint8_t device = 0
bool 커서를 지정한 열과 행으로 이동합니다.

예제

void setup() {
  Serial.begin(115200);
 
  if (!IclcdBegin(0x27, 20, 4)) {  // PCF8574 문자 LCD의 주소와 화면 크기를 설정합니다.
    Serial.println(F("CLCD connection failed"));
    return;
  }
 
  IclcdSetCursor(0, 0);  // 커서를 지정한 열과 행으로 이동합니다.
  IclcdPrint(F("ILOGICS Iclcd"));  // 문자열 또는 숫자를 LCD에 출력합니다.
  IclcdSetCursor(0, 1);  // 커서를 지정한 열과 행으로 이동합니다.
  IclcdPrint(1234);  // 문자열 또는 숫자를 LCD에 출력합니다.
  IclcdSetCursor(6, 1);  // 커서를 지정한 열과 행으로 이동합니다.
  IclcdPrint(12.34, 2);  // 문자열 또는 숫자를 LCD에 출력합니다.
}
 
void loop() {
}

주의사항

같은 카테고리의 내장 명령어

← 내장 명령어 리스트