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 potentiometer as a float in range -10 to 10.
The mapping from voltage to value was estimated from the original run
of Tinkamo and may need revision.
Parameters:
Name | Type | Description |
---|---|---|
command_id |
number | |
command |
Array.<number> |
- Overrides:
- TinkaTop#sense
- Source:
Returns:
- Type
- number