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)