Main Content

LED

Illuminate built-in LED on BeagleBone board

Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.

  • LED block

Libraries:
Embedded Coder Support Package for BeagleBone Black Hardware

Description

Use the LED block to illuminate a user-controllable LED on the BeagleBone® board. During simulations without the hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation.

Note

Do not specify the same LED in multiple blocks within a model.

Ports

Input

expand all

If the input to the block is a nonzero value, the LED specified in the LED parameter turns ON. If the input to the block is zero, the LED specified in the LED parameter turns OFF.

For example, if the LED parameter is set to GREEN and the input to the block is 5, the green LED on the hardware starts glowing.

Data Types: Boolean

Parameters

expand all

Select the LED to be turned on or off on your BeagleBone hardware board. To view the locations of the LED on the BeagleBone board, click View LED location.

Version History

Introduced in R2014b

See Also