Update import statement in code snippet.
The code snippets in the Design Guide article reference without the statement.
This commit is contained in:
parent
3863a6ab8c
commit
48443c9c3f
|
@ -60,6 +60,7 @@ For example, a user can then use ``deinit()```::
|
|||
|
||||
import digitalio
|
||||
import board
|
||||
import time
|
||||
|
||||
led = digitalio.DigitalInOut(board.D13)
|
||||
led.direction = digitalio.Direction.OUTPUT
|
||||
|
@ -79,6 +80,7 @@ Alternatively, using a ``with`` statement ensures that the hardware is deinitial
|
|||
|
||||
import digitalio
|
||||
import board
|
||||
import time
|
||||
|
||||
with digitalio.DigitalInOut(board.D13) as led:
|
||||
led.direction = digitalio.Direction.OUTPUT
|
||||
|
|
Loading…
Reference in New Issue