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
creates a new pushButtonObj
= soc.sdk.PushButton(Name
)soc.sdk.PushButton
object, with the
Name
property set to name
.
Properties
Name
— Name of push button
character vector
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
Pin
— Pin number
''
(default) | character vector
The pin used by the push button, specified as a character vector.
Example: B6
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
ActiveHigh
— Push button set to active high
1
(default) | 0
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
IOStandard
— IO standard used by push button
''
(default) | character vector
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)