- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Digital IO Example at https://software.intel.com/en-us/node/519984
needs 3 correction to work.
import pymraa
import time
gpioLed = pymraa.Gpio(2)
gpioLed.dir(pymraa.DIR_OUT)
ledState = True
while True:
gpioLed.write(1 if ledState else 0)
ledState = not ledState
time.sleep(1)
Change to:
import mraa
import time
gpioLed = mraa.Gpio(2)
gpioLed.dir(mraa.DIR_OUT)
ledState = True
while True:
gpioLed.write(1 if ledState else 0)
ledState = not ledState
time.sleep(1)
- Tags:
- Internet of Things
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page