Command and Response #gpio
ç <pin>.Direction
æ <pin.Direction(<dir>)
Parameters
Parameter Parameter description
<dir> The direction of the GPIO pin.
Input
input
Output
output
Example
ç
æ
Setting the Direction of a GPIO Pin
Command and Response
ç <pin>.Direction(<dir>)
æ <pin>.Direction(<dir>)
Parameters
See the previous section.
Example
ç
æ
Command and Response
ç <pin>.Output
æ <pin>.Output(<value>)
Parameters
Parameter Parameter description
<value> The output value of the GPIO pin.
High
high level
Low
low level
Example
ç
æ
Setting the Output Level of a GPIO Pin
Command and Response
ç <pin>.Output(<value>)
æ <pin>.Output(<value>)
Parameters
See the previous section.
Example
ç
æ
Command and Response
ç <pin>:interval(<value>;<time>)
æ <pin>:interval=
Parameters
Parameter Parameter description
<value> The output value of the GPIO pin.
High
high level
Low
low level
<time> Duration of the desired value in seconds.
1-120
seconds
Example
ç
æ
Toggling the Level of a GPIO Pin
The output level can be changed from high to low and from low to high by the command below.
Command and Response
ç <pin>:toggle()
æ <pin>:toggle
Example
ç
æ