Update import statement in code snippet.

The code snippets in the Design Guide article reference  without the  statement.
This commit is contained in:
Alexander Hagerman 2019-06-25 08:36:44 -04:00
parent 3863a6ab8c
commit 48443c9c3f
1 changed files with 2 additions and 0 deletions

View File

@ -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