Help CenterHelp Center
Play beep from speaker on EV3 brick
beep(myev3)
beep(myev3,duration)
example
beep(myev3) plays a beep for one-tenth of a second at 500 Hz from the speaker that is located on the EV3 brick.
myev3
beep(myev3,duration) plays a beep for a specific duration.
duration
collapse all
Play a beep from the EV3 speaker for a short period, and then for a longer period.
Create a connection to the EV3 brick called myev3.
myev3 = legoev3;
Play a beep for the default duration of 0.1 second.
Play a beep for 1 second.
beep(myev3,1)
Connection to EV3 brick, specified as a string that represents the object created using legoev3.
legoev3
Example: myev3
Data Types: char
char
0.1
0
30
The duration of the beep in seconds, specified as a double.
Example: 1
1
Data Types: double
double
legoev3 | playTone
playTone
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.
Select a Web Site
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