Beetle ESP32 C6 Mini touchRead error in compilation

userHead Giuseppe.Sorrentino 2024-07-13 06:49:04 261 Views3 Replies

Hello, I would like to know why the instruction touchRead gives error in compilation. Thankyou

2024-07-16 08:05:31

C:\Users\sorre\AppData\Local\Temp\.arduinoIDE-unsaved2024615-13724-1ml8xkm.m2j5\TouchRead\TouchRead.ino: In function 'void loop()':
C:\Users\sorre\AppData\Local\Temp\.arduinoIDE-unsaved2024615-13724-1ml8xkm.m2j5\TouchRead\TouchRead.ino:13:18: error: 'touchRead' was not declared in this scope; did you mean 'touch_pad_t'?
  13 |   Serial.println(touchRead(T1));  // get value using T1
     |                  ^~~~~~~~~
     |                  touch_pad_t

exit status 1

Compilation error: 'touchRead' was not declared in this scope; did you mean 'touch_pad_t'?
 

userHeadPic Giuseppe.Sorrentino
2024-07-14 09:23:15

What's the error message that you're seeing?

userHeadPic lia.ifat
Giuseppe.Sorrentino wrote:

C:\Users\sorre\AppData\Local\Temp\.arduinoIDE-unsaved2024615-13724-1ml8xkm.m2j5\TouchRead\TouchRead.ino: Nella funzione 'void loop()':
C:\Users\sorre\AppData\Local\Temp\.arduinoIDE-unsaved2024615-13724-1ml8xkm.m2j5\TouchRead\TouchRead.ino:13:18: errore: 'touchRead' non è stato dichiarato in questo ambito; intendevi 'touch_pad_t'?
  13 | Serial.println(touchRead(T1)); // ottieni il valore usando T1
     | ^~~~~~~~~
     | touch_pad_t

stato di uscita 1

Errore di compilazione: 'touchRead' non è stato dichiarato in questo ambito; intendevi forse 'touch_pad_t'?

2024-07-17 05:39:12
1 Replies