From a96c607fb5210429fb6f70a7606d58ac1dbdf1df Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Thu, 2 Nov 2017 14:52:41 -0700 Subject: [PATCH] pyupm_led: Fixed example for led This commit fixes issue 614. Updated the example to use pyupm_led as the module name (and skip the local module rename). Signed-off-by: Noel Eck --- examples/python/led.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/python/led.py b/examples/python/led.py index 85b8ff39..06548c52 100755 --- a/examples/python/led.py +++ b/examples/python/led.py @@ -22,11 +22,11 @@ from __future__ import print_function # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import time -from upm import pyupm_led as led +from upm import pyupm_led def main(): # Create the Grove LED object using GPIO pin 2 - led = led.Led(2) + led = pyupm_led.Led(2) # Print the name print(led.name()) @@ -39,8 +39,5 @@ def main(): led.off() time.sleep(1) - # Delete the Grove LED object - del led - if __name__ == '__main__': main()