diff options
| author | Alexander Hagerman <alex@unexpectedeof.net> | 2019-06-25 08:36:44 -0400 |
|---|---|---|
| committer | Alexander Hagerman <alex@unexpectedeof.net> | 2019-06-25 08:36:44 -0400 |
| commit | 48443c9c3fd3109edee22d6f698b1d135d035bb4 (patch) | |
| tree | 5b4449f81194dd375d811528789cb5b663fb35ff /docs | |
| parent | 3863a6ab8cffcc684ecb52adb361363503dcfdbf (diff) | |
Update import statement in code snippet.
The code snippets in the Design Guide article reference without the statement.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/design_guide.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/design_guide.rst b/docs/design_guide.rst index 2efbdc34c..5d965f907 100644 --- a/docs/design_guide.rst +++ b/docs/design_guide.rst @@ -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 |
