Main Content


Clear characters from LCD on EV3 brick



clearLCD(myev3) clears characters that the writeLCD function displays on the LCD located on the EV3 brick.


collapse all

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

Create a connection to the EV3 brick called myev3.

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.


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 using legoev3.

Example: myev3

Data Types: char