commands:reference:iclcdclear
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판 | |||
| commands:reference:iclcdclear [2026/09/08 00:53] – 바깥 편집 127.0.0.1 | commands:reference:iclcdclear [2026/09/12 23:27] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 14: | 줄 14: | ||
| ===== 예제 ===== | ===== 예제 ===== | ||
| + | |||
| + | PCF8574 문자 LCD의 I²C 주소가 '' | ||
| <code cpp> | <code cpp> | ||
| - | const uint8_t LCD_DEVICE | + | bool lcdReady |
| - | const uint8_t degreeChar[8] = {0x0C, 0x12, 0x12, 0x0C, 0, 0, 0, 0}; | + | |
| void setup() { | void setup() { | ||
| - | | + | |
| - | | + | lcdReady = IclcdBegin(0x27, |
| - | | + | |
| - | IclcdHome(LCD_DEVICE); | + | |
| - | IclcdDisplay(true, LCD_DEVICE); | + | |
| - | IclcdCursor(false, | + | } |
| - | | + | |
| - | | + | |
| - | IclcdTextDirection(true, LCD_DEVICE); // 문자가 입력되는 방향을 설정합니다. | + | |
| - | IclcdAutoscroll(false, | + | |
| } | } | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | IclcdSetCursor(0, 0, LCD_DEVICE); | + | |
| - | IclcdPrint(F(" | + | if (IclcdClear()) { // |
| - | | + | Serial.println(F("LCD cleared" |
| - | IclcdPrint(temperature, | + | |
| - | IclcdWrite(0, | + | |
| - | IclcdPrint('C', LCD_DEVICE); // 문자열 또는 숫자를 LCD에 출력합니다. | + | |
| - | + | ||
| - | if (Iup(0, IdigitalRead(0, 5))) IclcdScrollLeft(LCD_DEVICE); | + | |
| - | if (Iup(1, IdigitalRead(1, | + | |
| - | | + | |
| } | } | ||
| </ | </ | ||
commands/reference/iclcdclear.1788796397.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
