legoev3
Connection to LEGO MINDSTORMS EV3 brick
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Description
This object represents a connection to a LEGO®
MINDSTORMS® EV3 brick. To interact with peripherals on the EV3 brick, such as the
speaker, LCD, buttons, or status light, use this object with the functions listed in
Object Functions. To connect to sensors and motors, use this object with
the following sensor objects: touchSensor
, irSensor
, gyroSensor
, colorSensor
, sonicSensor
, or motor
.
Creation
Syntax
Description
creates a connection
to an EV3 brick, myev3
= legoev3myev3
, that uses the same settings as the
previous connection.
creates a connection to an EV3 brick using a specified connection type.
communicationtype sets the CommunicationType property of the connection
object.myev3
= legoev3(communicationtype)
creates a connection to an EV3 brick using a type of connection that requires
the IP address and ID of the EV3 brick.myev3
= legoev3(communicationtype,ipaddress,id)
Input Arguments
Properties
Object Functions
clear | Remove items from workspace, freeing up system memory |
writeLCD | Write characters to LCD on EV3 brick |
clearLCD | Clear characters from LCD on EV3 brick |
playTone | Play tones from speaker on EV3 brick |
beep | Play beep from speaker on EV3 brick |
readButton | Read whether button on EV3 brick is being pressed |
writeStatusLight | Control color and mode of status light on EV3 brick |
Examples
See Also
touchSensor
| irSensor
| gyroSensor
| colorSensor
| sonicSensor
Topics
- Reconnect the Host Computer to an EV3 Brick
- Connect Host Computer to EV3 Brick over USB Cable
- Connect Host Computer to EV3 Brick over Wireless Network
- Connect a Host Computer Running macOS to an EV3 Brick Using Bluetooth
- Connect a Host Computer Running Windows to an EV3 Brick Using Bluetooth
- EV3 Brick Hardware
- Connections to EV3 Hardware