Skip to content
Snippets Groups Projects
Commit d5b8825d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

docs/machine.Pin: Add on() and off() methods.

parent 3496d9e4
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,14 @@ Methods ...@@ -152,6 +152,14 @@ Methods
and get the value of the pin. It is equivalent to Pin.value([x]). and get the value of the pin. It is equivalent to Pin.value([x]).
See :meth:`Pin.value` for more details. See :meth:`Pin.value` for more details.
.. method:: Pin.on()
Set pin to "1" output level.
.. method:: Pin.off()
Set pin to "0" output level.
.. method:: Pin.mode([mode]) .. method:: Pin.mode([mode])
Get or set the pin mode. Get or set the pin mode.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment