사용자 도구

사이트 도구


commands:reference:iclcdcommand

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
commands:reference:iclcdcommand [2026/09/01 20:04] – 만듦 - 바깥 편집 127.0.0.1commands:reference:iclcdcommand [2026/09/14 20:30] (현재) – 바깥 편집 127.0.0.1
줄 11: 줄 11:
 ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^
 | ''IclcdCommand(command, device)'' | ''uint8_t command''\\ ''uint8_t device = 0'' | ''bool'' | LCD 제어 명령을 직접 전송합니다. | | ''IclcdCommand(command, device)'' | ''uint8_t command''\\ ''uint8_t device = 0'' | ''bool'' | LCD 제어 명령을 직접 전송합니다. |
 +
  
 ===== 예제 ===== ===== 예제 =====
 +
 +MPAINO-8A8R(T)의 I2C 포트에 주소 ''0x27''인 20×4 PCF8574 문자 LCD를 연결한 예제입니다. 실제 LCD의 주소나 크기가 다르면 ''IclcdBegin()'' 인수를 바꾸십시오.
  
 <code cpp> <code cpp>
-bool IclcdBegin(uint8_t address, uint8_t columns, uint8_t rows, +bool lcdReady false
-                bool backlight true, uint8_t device = 0)+ 
-bool IclcdClear(uint8_t device = 0); +void setup() { 
-bool IclcdHome(uint8_t device = 0); +  lcdReady IclcdBegin(0x27204);  // LCD 주소와 화면 크기를 설정합니다. 
-bool IclcdSetCursor(uint8_t column, uint8_t row, uint8_t device 0); +} 
-bool IclcdDisplay(bool on = trueuint8_t device = 0); + 
-bool IclcdCursor(bool on = trueuint8_t device = 0); +void loop() { 
-bool IclcdBlink(bool on = true, uint8_t device = 0); +  if (!lcdReadyreturn
-bool IclcdBacklight(bool on = true, uint8_t device = 0); +  IclcdPrint(F("Ready"));  // 동작을 확인할 문자를 표시합니다. 
-bool IclcdScrollLeft(uint8_t device = 0); +  delay(1000); 
-bool IclcdScrollRight(uint8_t device = 0); +  IclcdCommand(0x01);  // HD44780의 화면 지우기 명령을 보냅니다. 
-bool IclcdTextDirection(bool leftToRight = true, uint8_t device = 0); +  delay(1000); 
-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(...);+
 </code> </code>
  
줄 43: 줄 41:
   * MPAINO에서 D20/D21을 외부 인터럽트로 사용하면 I²C와 동시에 사용할 수 없습니다.   * MPAINO에서 D20/D21을 외부 인터럽트로 사용하면 I²C와 동시에 사용할 수 없습니다.
   * ''IclcdCommand()''는 LCD 상태를 직접 바꿀 수 있으므로 HD44780 명령을 알고 있을 때만 사용하십시오.   * ''IclcdCommand()''는 LCD 상태를 직접 바꿀 수 있으므로 HD44780 명령을 알고 있을 때만 사용하십시오.
 +
 +===== 같은 카테고리의 내장 명령어 =====
 +
 +  * [[commands:reference:iclcdbegin|IclcdBegin() 상세 설명 보기]]
 +  * [[commands:reference:iclcdclear|IclcdClear() 상세 설명 보기]]
 +  * [[commands:reference:iclcdhome|IclcdHome() 상세 설명 보기]]
 +  * [[commands:reference:iclcdsetcursor|IclcdSetCursor() 상세 설명 보기]]
 +  * [[commands:reference:iclcddisplay|IclcdDisplay() 상세 설명 보기]]
 +  * [[commands:reference:iclcdcursor|IclcdCursor() 상세 설명 보기]]
 +  * [[commands:reference:iclcdblink|IclcdBlink() 상세 설명 보기]]
 +  * [[commands:reference:iclcdbacklight|IclcdBacklight() 상세 설명 보기]]
 +  * [[commands:reference:iclcdscrollleft|IclcdScrollLeft() 상세 설명 보기]]
 +  * [[commands:reference:iclcdscrollright|IclcdScrollRight() 상세 설명 보기]]
 +  * [[commands:reference:iclcdtextdirection|IclcdTextDirection() 상세 설명 보기]]
 +  * [[commands:reference:iclcdautoscroll|IclcdAutoscroll() 상세 설명 보기]]
 +  * [[commands:reference:iclcdcreatechar|IclcdCreateChar() 상세 설명 보기]]
 +  * [[commands:reference:iclcdwrite|IclcdWrite() 상세 설명 보기]]
 +  * [[commands:reference:iclcdprint|IclcdPrint() 상세 설명 보기]]
  
 [[commands:builtin|← 내장 명령어 리스트]] [[commands:builtin|← 내장 명령어 리스트]]
  
commands/reference/iclcdcommand.1788260661.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki