From 48443c9c3fd3109edee22d6f698b1d135d035bb4 Mon Sep 17 00:00:00 2001 From: Alexander Hagerman Date: Tue, 25 Jun 2019 08:36:44 -0400 Subject: [PATCH] Update import statement in code snippet. The code snippets in the Design Guide article reference without the statement. --- docs/design_guide.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/design_guide.rst b/docs/design_guide.rst index 2efbdc34c0..5d965f9074 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