gpio: gpio in/out both work
* Python example included. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
14
examples/python/blink-io8.py
Normal file
14
examples/python/blink-io8.py
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import pymaa as maa
|
||||
import time
|
||||
|
||||
x = maa.gpio_t()
|
||||
maa.gpio_init(x, 26)
|
||||
maa.gpio_dir(x, "out")
|
||||
|
||||
while True:
|
||||
maa.gpio_write(x,1)
|
||||
time.sleep(0.2)
|
||||
maa.gpio_write(x,0)
|
||||
time.sleep(0.2)
|
||||
Reference in New Issue
Block a user