Main Content

LED

Illuminate built-in LED

  • LED block

Libraries:
Simulink Coder Support Package for BeagleBone Blue Hardware / Basic

Description

The LED block illuminates a user-controllable LED on the hardware.

The block accepts a uint8 value as input. 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.

During simulations without 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: uint8

Parameters

expand all

Select the LED to be turned on or off.

Version History

Introduced in R2017b