Skip to content

Commit 6b188a1

Browse files
author
Thomas Preston
committed
updated docs to include deinit
1 parent 0b65654 commit 6b188a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/example.rst

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Basic usage
3434
>>> bin(pfd.gpiob.value) # fourth switch pressed (physical input port)
3535
'0b11110111'
3636

37+
>>> pfd.deinit_board() # disables interrupts and closes the file
38+
3739
.. note: Inputs are active low on GPIO Port B. This is hidden in software
3840
unless you inspect the GPIOB register.
3941
@@ -47,6 +49,7 @@ Here are some functions you might want to use if objects aren't your thing::
4749
0
4850
>>> p.digital_read(2, 3) # reads pin2 (on board3)
4951
1
52+
>>> p.deinit()
5053

5154
.. note: These are just wrappers around the PiFaceDigital object.
5255

0 commit comments

Comments
 (0)