Skip to content

Commit

Permalink
docs: Update design guide for new DigitalInOut API.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Jun 19, 2017
1 parent a715bf6 commit 97fcdfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/design_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For example, a user can then use ``deinit()```::
import board

led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.DigitalInOut.Direction.OUT
led.direction = digitalio.Direction.OUTPUT

for i in range(10):
led.value = True
Expand All @@ -68,7 +68,7 @@ Alternatively, using a ``with`` statement ensures that the hardware is deinitial
import board

with digitalio.DigitalInOut(board.D13) as led:
led.direction = digitalio.DigitalInOut.Direction.OUT
led.direction = digitalio.Direction.OUTPUT

for i in range(10):
led.value = True
Expand Down

0 comments on commit 97fcdfb

Please sign in to comment.