get_pin deprecated

Get current state of a Digital I/O pin

Deprecated

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

{
    "state": "H"
}
1
2
3