Table of Contents

IclcdCommand()

IclcdCommand() sends an LCD control command directly.

IclcdCommand command operation flow

bool IclcdCommand(uint8_t command, uint8_t device = 0)

Commands

Command Arguments Return Value Operation
IclcdCommand(command, device) uint8_t command
uint8_t device = 0
bool Sends an LCD control command directly.

Example

This example connects a 20×4 PCF8574 character LCD at address 0x27 to the MPAINO-8A8R(T) I2C port. Change the IclcdBegin() arguments if your LCD has a different address or size.

bool lcdReady = false;
 
void setup() {
  lcdReady = IclcdBegin(0x27, 20, 4);  // Set the LCD address and display size.
}
 
void loop() {
  if (!lcdReady) return;
  IclcdPrint(F("Ready"));  // Display text to observe the operation.
  delay(1000);
  IclcdCommand(0x01);  // Send the HD44780 clear-display command.
  delay(1000);
}

Precautions

Built-in Commands in the Same Category

← Built-in Command List