Table of Contents

IclcdTextDirection()

IclcdTextDirection() sets the text entry direction.

IclcdTextDirection command operation flow

bool IclcdTextDirection(bool leftToRight = true, uint8_t device = 0)

Commands

Command Arguments Return Value Operation
IclcdTextDirection(leftToRight, device) bool leftToRight = true
uint8_t device = 0
bool Sets the text entry direction.

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.
  if (lcdReady) {
    IclcdTextDirection(false);  // Write text from right to left.
    IclcdPrint(F("ABC"));  // Display text to observe the operation.
  }
}
 
void loop() {}

Precautions

Built-in Commands in the Same Category

← Built-in Command List