-
Notifications
You must be signed in to change notification settings - Fork 7.6k
touchRead #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
no library is needed ;) just call |
I have done so, but when I build with the arduino ide it says touchRead is not declared |
You must have selected the wrong board or something. touchRead is defined here; |
The board is correct, I have the esp devkit. I have written this code as an example and still does not recognize that touchRead is declared: `#include <arduino.h> int Touch = 20; void setup() { Serial.begin(115200); pinMode(Touch, INPUT); } void loop() { touchRead(Touch); if(Touch == LOW){ Serial.println("ENABLE"); delay(1000); else{ delay(1000); } |
this sketch compiled just fine here. Also "Arduino" is capitalized. Also touchRead will return unsigned integer value, not LOW/HIGH. |
btw are you sure you are running the latest esp32-arduino? |
I´m not sure, where is it? |
I found it, I didn´t have the latest version, now it compiles correctly. Thanks |
Better esp platform names
Hi, I am looking for information about the capacitive touch and as they are programmed in the ide of arduino, I have seen that it is necessary to read them with the function touchRead but I do not find which is the librery that needs to recognize this function.
can anybody help me?
Thank you
The text was updated successfully, but these errors were encountered: