Main Content

clearLCD

Clear characters from LCD on EV3 brick

Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.

Description

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

example

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

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

Example: myev3

Data Types: char