projects
/
contrib
/
mraa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
swig: Add support for isr/callbacks from python
[contrib/mraa.git]
/
examples
/
python
/
hello_isr.py
1
#!/usr/bin/env python
2
3
import pymaa as maa
4
5
def test():
6
print("wooo")
7
8
x = maa.Gpio(6)
9
x.dir(maa.MAA_GPIO_IN)
10
x.set_isr(test)