Skip to content

Commit 97fcdfb

Browse files
committed
docs: Update design guide for new DigitalInOut API.
1 parent a715bf6 commit 97fcdfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/design_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For example, a user can then use ``deinit()```::
4949
import board
5050

5151
led = digitalio.DigitalInOut(board.D13)
52-
led.direction = digitalio.DigitalInOut.Direction.OUT
52+
led.direction = digitalio.Direction.OUTPUT
5353

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

7070
with digitalio.DigitalInOut(board.D13) as led:
71-
led.direction = digitalio.DigitalInOut.Direction.OUT
71+
led.direction = digitalio.Direction.OUTPUT
7272

7373
for i in range(10):
7474
led.value = True

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy