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
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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