summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator/watch.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-11 20:13:58 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-11 20:15:47 (GMT)
commitacf318c122c635fef3dbe1f89806b5a4192500b6 (patch)
tree29de0ce45cdc99c170084e0bd6e930ed4af1b26a /wasp/boards/simulator/watch.py
parent61931c3637f382a696fb8af8a4f435272f383269 (diff)
wasp: simulator: Add interupt support for CST816S
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator/watch.py')
-rw-r--r--wasp/boards/simulator/watch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/boards/simulator/watch.py b/wasp/boards/simulator/watch.py
index b9de73d..c6dafc3 100644
--- a/wasp/boards/simulator/watch.py
+++ b/wasp/boards/simulator/watch.py
@@ -131,6 +131,6 @@ accel = Accelerometer()
battery = Battery()
button = Pin('BUTTON', Pin.IN, quiet=True)
rtc = RTC()
-touch = CST816S(I2C(0))
+touch = CST816S(I2C(0), Pin('TP_INT', Pin.IN, quiet=True), Pin('TP_RST', Pin.OUT, quiet=True))
vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)