en-us_commands:reference:iclcdcreatechar
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:iclcdcreatechar [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:iclcdcreatechar [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 heart[8] = { | + | const uint8_t heart[8] = {0, 10, 31, 31, 14, 4, 0, 0}; |
| - | 0b00000, 0b01010, 0b11111, 0b11111, | + | |
| - | 0b01110, 0b00100, 0b00000, 0b00000 | + | |
| - | }; | + | |
| - | IclcdCreateChar(0, heart); | + | bool lcdReady = false; |
| - | IclcdSetCursor(0, 1); | + | |
| - | IclcdWrite(0); | + | void setup() { |
| + | lcdReady = IclcdBegin(0x27, 20, 4); // Set the LCD address and display size. | ||
| + | if (lcdReady) { | ||
| + | IclcdCreateChar(0, heart); // Store custom character 0. | ||
| + | IclcdWrite(0); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | void loop() {} | ||
| </ | </ | ||
| Line 34: | Line 41: | ||
| * On MPAINO, using D20/D21 for external interrupts prevents simultaneous I²C use. | * On MPAINO, using D20/D21 for external interrupts prevents simultaneous I²C use. | ||
| * '' | * '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/iclcdcreatechar.1788785566.txt.gz · Last modified: by 127.0.0.1
