Main Content

soc.sdk.PushButton Class

Namespace: soc.sdk

Push button on the hardware board

Description

PushButton object represents a push button switch on the hardware board.

Creation

Description

pushButtonObj = soc.sdk.PushButton(Name) creates a new soc.sdk.PushButton object, with the Name property set to name.

Properties

expand all

Name of the push button, specified as a character vector.

Note

The name must start with a letter and may contain letters, numbers, underscores, minus signs, slashes and spaces.

Example: 'MyPushButton'

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

The pin used by the push button, specified as a character vector.

Example: B6

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Configuration of the push button where 1 is active high and 0 is active low.

Example: 1

Attributes:

GetAccess
public
SetAccess
public

Data Types: logical

Indicates the IO standard used by the push button, specified as a character vector.

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Version History

Introduced in R2019b