en-us_commands:reference:iclcdautoscroll
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en-us_commands:reference:iclcdautoscroll [2026/09/08 00:53] – 바깥 편집 127.0.0.1 | en-us_commands:reference:iclcdautoscroll [2026/09/14 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | This example connects a 20×4 PCF8574 character LCD at address '' | ||
| <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() { | ||
| - | | + | |
| - | IclcdCreateChar(0, | + | |
| - | IclcdClear(LCD_DEVICE); | + | |
| - | IclcdHome(LCD_DEVICE); | + | |
| - | IclcdDisplay(true, | + | |
| - | | + | |
| - | IclcdBlink(false, | + | |
| - | IclcdBacklight(true, LCD_DEVICE); // Turn the LCD backlight on or off. | + | |
| - | IclcdTextDirection(true, | + | |
| - | IclcdAutoscroll(false, | + | |
| } | } | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | IclcdSetCursor(0, | + | IclcdWrite(' |
| - | IclcdPrint(F(" | + | |
| - | IclcdSetCursor(0, | + | |
| - | IclcdPrint(temperature, | + | |
| - | IclcdWrite(0, LCD_DEVICE); | + | |
| - | IclcdPrint('C', LCD_DEVICE); // Print a string or number | + | |
| - | + | ||
| - | | + | |
| - | if (Iup(1, IdigitalRead(1, | + | |
| - | if (Iup(2, IdigitalRead(2, | + | |
| } | } | ||
| </ | </ | ||
en-us_commands/reference/iclcdautoscroll.1788796397.txt.gz · Last modified: by 127.0.0.1
