mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
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:
parent
bc4f124d54
commit
a96c607fb5
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user