Table of Contents

IclcdAutoscroll()

IclcdAutoscroll() enables or disables automatic scrolling.

IclcdAutoscroll command operation flow

bool IclcdAutoscroll(bool on = true, uint8_t device = 0)

Commands

Command Arguments Return Value Operation
IclcdAutoscroll(on, device) bool on = true
uint8_t device = 0
bool Enables or disables automatic scrolling.

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) IclcdAutoscroll(true);  // Scroll automatically as new characters are written.
}
 
void loop() {
  if (!lcdReady) return;
  IclcdWrite('A');  // Write one character to the LCD.
  delay(500);
}

Precautions

Built-in Commands in the Same Category

← Built-in Command List