Private
Public Access
2
0
Files
mraa/examples/python/hello_isr.py
Brendan Le Foll 5d9fc39ae9 hello_isr.py: fix usage of isr in python example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 17:52:06 +01:00

11 lines
148 B
Python

#!/usr/bin/env python
import pymaa as maa
def test():
print("wooo")
x = maa.Gpio(6)
x.dir(maa.MAA_GPIO_IN)
x.isr(maa.MAA_GPIO_EDGE_BOTH, test)