Class: Button

Button()

Class representing a Button TinkaTop

Constructor

new Button()

Creates an instance of the Button class.
Source:

Extends

Methods

get_id() → {number}

Get the value of id. ID's are determined by the Tinkamo hardware protocol.
Overrides:
Source:
Returns:
Type
number

get_name() → {string}

Get the value of name
Overrides:
Source:
Returns:
Type
string

sense(command_id, command) → {number}

Returns the state of the button, pressed (1) or depressed (0).
Parameters:
Name Type Description
command_id number
command Array.<number>
Overrides:
  • TinkaTop#sense
Source:
Returns:
Type
number