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 <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2017-11-02 14:52:41 -07:00
parent bc4f124d54
commit a96c607fb5

View File

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