Main Content

writeLCD

Write characters to LCD on EV3 brick

Description

example

writeLCD(myev3,string)displays a string near the center of the LCD located on the EV3 brick.

example

writeLCD(myev3,string,row,column)displays a string on a specific row and column of the LCD.

Examples

collapse all

You can display text near the center of the LCD or at a specific location.

Create a connection to the EV3 brick calledmyev3.

myev3 = legoev3;

Display text on the LCD.

writeLCD(myev3,'Collision Alert!')

The text appears near the center of the LCD.

Clear the text from the LCD.

clearLCD(myev3)

Display “X” in the lower-right corner of the LCD.

writeLCD(myev3,'X', 9, 19)

Input Arguments

collapse all

Connection to EV3 brick, specified as a string that represents the object created usinglegoev3.

Example:myev3

Data Types:char

Characters to display on LCD, specified as a string.

Example:'Collision Alert!'

Data Types:char

Row number on LCD, specified as a double.

Example:2

Data Types:double

Column number on LCD, specified as a double.

Example:1

Data Types:double