Oliver M 02/26/2023 07:59 PMI'm trying out the example code from the Touch
class, but I'm getting an error when trying to run it:
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.53>
******************************************************************************
EXCEPTION error.
UNKNOWN ERROR 0xffffffff(-1)
0: touch_read_ <sdk>/gpio/touch.toit:113:3
1: Touch.read <sdk>/gpio/touch.toit:58:12
2: main touch-test.toit:21:18
******************************************************************************
The code I'm using is
while true:
touch := Touch (gpio.Pin 0) --threshold=500
print (touch.read --raw)
touch.close
sleep --ms=1000
(plus the relevant imports). I'm using a TTGO T-BEAM, and pins 0 or 32 bothe didn't work... Any ideas?