Main Content


Show location, name, and color of user-controllable LEDs



showLEDs(bbb) displays the location, name, and color of the user-controllable LEDs on the board.


collapse all

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: ''
               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.


The figure shows the output of a call to showLEDs.

Turn on the specified LED by setting its value to 1 or true.


Turn off the LED by setting its value to 0 or false.


Input Arguments

collapse all

BeagleBone Black connection created using beaglebone, specified as an object.

Version History

Introduced in R2015a