projects
/
contrib
/
mraa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
spi: Make Spi write() work from SWIG with typemaps
[contrib/mraa.git]
/
examples
/
python
/
hello_isr.py
diff --git
a/examples/python/hello_isr.py
b/examples/python/hello_isr.py
index
c724ece
..
cb02488
100644
(file)
--- a/
examples/python/hello_isr.py
+++ b/
examples/python/hello_isr.py
@@
-25,8
+25,16
@@
import mraa
import time
+class Counter:
+ count = 0
+
+c = Counter()
+
+# inside a python interupt you cannot use 'basic' types so you'll need to use
+# objects
def test(args):
print("wooo")
+ c.count+=1
x = mraa.Gpio(6)
x.dir(mraa.DIR_IN)