Beetle ESP32 C6 Mini touchRead error in compilation
Hello, I would like to know why the instruction touchRead gives error in compilation. Thankyou
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'?
What's the error message that you're seeing?
lia.ifatC:\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'?