Help CenterHelp Center
Write characters to LCD on EV3 brick
writeLCD(myev3,string)
writeLCD(myev3,string,row,column)
example
writeLCD(myev3,string) displays a string near the center of the LCD located on the EV3 brick.
myev3
string
writeLCD(myev3,string,row,column) displays a string on a specific row and column of the LCD.
row
column
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)
Connection to EV3 brick, specified as a string that represents the object created using legoev3.
legoev3
Example: myev3
Data Types: char
char
Characters to display on LCD, specified as a string.
Example: 'Collision Alert!'
'Collision Alert!'
1
9
Row number on LCD, specified as a double.
Example: 2
2
Data Types: double
double
19
Column number on LCD, specified as a double.
Example: 1
legoev3 | clearLCD
clearLCD
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office