First Version with touch function only
This commit is contained in:
parent
670e923aa5
commit
e54b4e7753
1 changed files with 18 additions and 0 deletions
18
FastTouch.ino
Executable file
18
FastTouch.ino
Executable file
|
@ -0,0 +1,18 @@
|
|||
#define TOUCH_PIN 4 //Für Touch: 2, 4, 12, 13, 14, 15, 27
|
||||
|
||||
int touch_value = 100;
|
||||
|
||||
void setup(){
|
||||
Serial.begin(115200);
|
||||
Serial.println("Touch Test");
|
||||
}
|
||||
|
||||
void loop(){
|
||||
touch_value = touchRead(TOUCH_PIN);
|
||||
|
||||
if (touch_value < 65) { Serial.print("Touch @ "); }
|
||||
Serial.println(touch_value);
|
||||
|
||||
delay(20);
|
||||
}
|
||||
|
Loading…
Reference in a new issue