Table of Contents

IclcdPrint()

IclcdPrint() prints a string or number on the LCD.

IclcdPrint command operation flow

bool IclcdPrint(const char value[], uint8_t device = 0)
bool IclcdPrint(const String& value, uint8_t device = 0)
bool IclcdPrint(const __FlashStringHelper* value, uint8_t device = 0)
bool IclcdPrint(char value, uint8_t device = 0)
bool IclcdPrint(unsigned char value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(int value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(unsigned int value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(long value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(unsigned long value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(double value, int digits = 2, uint8_t device = 0)

Commands

Command Arguments Return Value Operation
IclcdPrint(value, device) const char value[]
uint8_t device = 0
bool Prints a string or number on the LCD.

Example

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() {
}

Precautions

Built-in Commands in the Same Category

← Built-in Command List