showLEDs
Show location, name, and color of user-controllable LEDs
Syntax
Description
Examples
Control the LED on the Board
Locate and control the onboard LED, turning it on and off.
Create a connection from the MATLAB® software to the BeagleBone® Black hardware.
bbb = beaglebone
bbb = beaglebone with properties: DeviceAddress: '192.168.7.2' BoardName: 'BeagleBone Black Rev 00C0' AvailableLEDs: {'USR0' 'USR1' 'USR2' 'USR3'} AvailableDigitalPins: {1x29 cell} AvailableAnalogPins: {'AIN0' 'AIN1' 'AIN2' 'AIN3' 'AIN4' 'AIN5' 'AIN6'} AvailablePWMPins: {} AvailableSPIChannels: {} AvailableI2CBuses: {'i2c-1'} AvailableSerialPorts: {} AvailableWebcams: {}
The AvailableLEDs
property shows the name of the
user-controllable LED.
Show the location of the user-controllable LED on the board.
showLEDs(bbb)
The figure shows the output of a call to showLEDs
.
Turn on the specified LED by setting its value to 1
or true
.
writeLED(bbb,'usr0',1)
Turn off the LED by setting its value to 0
or false
.
writeLED(bbb,'usr0',false)
Input Arguments
bbb
— Connection to BeagleBone Black hardware
beaglebone
object
BeagleBone Black connection created using beaglebone
, specified as an
object.
Version History
Introduced in R2015a
MATLAB Command
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)