Oliver M
02/26/2023, 7:59 PMTouch
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?floitsch
02/26/2023, 9:34 PMfloitsch
02/26/2023, 10:16 PMOliver M
02/26/2023, 10:19 PMfloitsch
02/26/2023, 10:25 PMfloitsch
02/26/2023, 10:30 PMfloitsch
02/26/2023, 10:31 PMkasperl
02/28/2023, 4:06 AMOliver M
02/28/2023, 7:21 PM******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.55>
******************************************************************************
EXCEPTION error.
UNKNOWN ERROR 0x103(259)
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
******************************************************************************
floitsch
02/28/2023, 8:48 PMOliver M
02/28/2023, 8:58 PMimport gpio
import gpio.touch show Touch
main:
while true:
touch := Touch (gpio.Pin 32)// --threshold=500
print (touch.read --raw)
touch.close
sleep --ms=1000
Oliver M
02/28/2023, 8:59 PMfloitsch
02/28/2023, 11:51 PMfloitsch
02/28/2023, 11:51 PMfloitsch
02/28/2023, 11:52 PMOliver M
03/01/2023, 8:35 AMfloitsch
03/01/2023, 11:55 AMfloitsch
03/01/2023, 12:02 PMfloitsch
03/01/2023, 12:03 PMOliver M
03/01/2023, 12:03 PMfloitsch
03/01/2023, 12:06 PMfloitsch
03/01/2023, 12:07 PMOliver M
03/01/2023, 12:17 PMfloitsch
03/01/2023, 12:17 PMfloitsch
03/01/2023, 12:18 PMfloitsch
03/01/2023, 12:18 PMfloitsch
03/01/2023, 12:18 PMOliver M
03/01/2023, 12:18 PMfloitsch
03/01/2023, 12:18 PMfloitsch
03/01/2023, 12:19 PMOliver M
03/03/2023, 6:52 PMEXCEPTION error.
ALREADY_IN_USE
0: gpio_use_ <sdk>/gpio/pin.toit:389:3
1: Pin <sdk>/gpio/pin.toit:131:17
2: main touch-test.toit:6:21
Oliver M
03/03/2023, 6:52 PMtouch.read
itOliver M
03/03/2023, 6:53 PMOliver M
03/03/2023, 7:05 PMOliver M
03/03/2023, 7:05 PMOliver M
03/03/2023, 7:06 PMOliver M
03/03/2023, 7:11 PMfloitsch
03/03/2023, 7:54 PMOliver M
03/03/2023, 8:00 PMfloitsch
03/04/2023, 10:07 AMOliver M
03/04/2023, 11:49 PMfloitsch
03/04/2023, 11:56 PMPeterJ
04/21/2023, 8:58 AMai-bot
04/21/2023, 8:58 AMfloitsch
04/21/2023, 8:59 AMai-bot
04/21/2023, 8:59 AMfloitsch
04/21/2023, 9:00 AMfloitsch
04/21/2023, 9:01 AMPeterJ
04/21/2023, 9:02 AMfloitsch
04/21/2023, 9:02 AMPeterJ
04/21/2023, 9:02 AM