Private
Public Access
2
0

swig: Add support for isr/callbacks from python

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-13 20:45:00 +00:00
parent b8e0ca76b1
commit f7169cc5c5
6 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python
import pymaa as maa
def test():
print("wooo")
x = maa.Gpio(6)
x.dir(maa.MAA_GPIO_IN)
x.set_isr(test)