get_pin deprecated
Get current state of a Digital I/O pinDeprecated
get_pin is deprecated, use get_pin_mode instead.
Parameters
integer required
Target pin to get the state
allowed values:1 to 16# Available states for a pin are
| State | Description |
|---|---|
| I | Input |
| O | Output |
| H | High, pin is set to 1 |
| L | Low, pin is set to 0 |
| X | Off, Pin is off |
# Examples
# Sample response
{
"override": "X",
"pin": "pin1",
"state": "PG1"
}
1
2
3
4
5
2
3
4
5