projects
/
contrib
/
mraa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'gen2'
[contrib/mraa.git]
/
examples
/
python
/
hello_isr.py
1
#!/usr/bin/env python
2
3
import pymaa as maa
4
5
def test(args):
6
print("wooo")
7
8
x = maa.Gpio(6)
9
x.dir(maa.DIR_IN)
10
x.isr(maa.EDGE_BOTH, test, test)