Private
Public Access
2
0

gpio: gpio in/out both work

* Python example included.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-04-11 15:55:01 +01:00
parent 6d13a41c96
commit e64ffcf77d
2 changed files with 19 additions and 0 deletions

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