Private
Public Access
2
0

hello_isr.py: add counter to example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-11-25 10:37:36 +00:00
parent abd538dc4b
commit 8be861aa1f

View File

@@ -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)