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)