Main Content

addNewLED

Class: soc.sdk.Hardware
Namespace: soc.sdk

Add new LED to hardware

Since R2019b

Syntax

ledObj = addNewLED(hardwareObj,name)

Description

ledObj = addNewLED(hardwareObj,name) creates a new soc.sdk.LED object, with the Name property set to name, and adds the new object to the soc.sdk.Hardware object.

Input Arguments

expand all

soc.sdk.Hardware object mapped to the soc.sdk.BoardSupport object.

Name of the LED owned by a hardware board, specified as a string.

Example: 'MyLED'

Data Types: string | char

Output Arguments

expand all

A soc.sdk.LED object that defines the properties of an LED on the hardware.

Version History

Introduced in R2019b