projects
/
contrib
/
mraa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gpio: Added args param to maa_gpio_isr and added documentation
[contrib/mraa.git]
/
examples
/
python
/
hello_gpio.py
diff --git
a/examples/python/hello_gpio.py
b/examples/python/hello_gpio.py
index
022a528
..
cacee8a
100644
(file)
--- a/
examples/python/hello_gpio.py
+++ b/
examples/python/hello_gpio.py
@@
-24,7
+24,7
@@
import pymaa
-
x = pymaa.gpio_t(
)
-
print(x.pin
)
-
gpio_init(x, 20
)
-
print(x.pin
)
+
print (pymaa.getVersion()
)
+
x = pymaa.Gpio(13
)
+
x.dir(pymaa.DIR_OUT
)
+
x.write(1
)