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()