IclcdBegin() sets the address and screen dimensions of a PCF8574 character LCD.
bool IclcdBegin(uint8_t address, uint8_t columns, uint8_t rows, bool backlight = true, uint8_t device = 0)
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IclcdBegin(address, columns, rows, backlight, device) | uint8_t addressuint8_t columnsuint8_t rowsbool backlight = trueuint8_t device = 0 | bool | Sets the address and screen dimensions of a PCF8574 character LCD. |
void setup() { Serial.begin(115200); if (!IclcdBegin(0x27, 20, 4)) { // Set the address and dimensions of the PCF8574 character LCD. Serial.println(F("CLCD connection failed")); return; } IclcdSetCursor(0, 0); // Move the cursor to the specified column and row. IclcdPrint(F("ILOGICS Iclcd")); // Print a string or number to the LCD. IclcdSetCursor(0, 1); // Move the cursor to the specified column and row. IclcdPrint(1234); // Print a string or number to the LCD. IclcdSetCursor(6, 1); // Move the cursor to the specified column and row. IclcdPrint(12.34, 2); // Print a string or number to the LCD. } void loop() { }
Wire transfers or I²C slave callbacks concurrently with Iclcd…(). Iclcd transfers run at 100 kHz and then restore the previous TWI settings.IclcdCommand() can change the LCD state directly. Use it only if you understand HD44780 commands.