Main Content


Class: soc.sdk.Hardware
Package: soc.sdk

Add new LED to hardware


ledObj = addNewLED(hardwareObj,name)


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.

Introduced in R2019b