Skip to content

Commit

Permalink
updated docs to include deinit
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Preston committed Nov 5, 2013
1 parent 0b65654 commit 6b188a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Basic usage
>>> bin(pfd.gpiob.value) # fourth switch pressed (physical input port)
'0b11110111'

>>> pfd.deinit_board() # disables interrupts and closes the file

.. note: Inputs are active low on GPIO Port B. This is hidden in software
unless you inspect the GPIOB register.
Expand All @@ -47,6 +49,7 @@ Here are some functions you might want to use if objects aren't your thing::
0
>>> p.digital_read(2, 3) # reads pin2 (on board3)
1
>>> p.deinit()

.. note: These are just wrappers around the PiFaceDigital object.
Expand Down

0 comments on commit 6b188a1

Please sign in to comment.