From e54b4e77536bfd53b6859126ea4b9b65e602ce57 Mon Sep 17 00:00:00 2001 From: Stefan Heinrichsen Date: Thu, 11 Apr 2019 19:16:59 +0200 Subject: [PATCH] First Version with touch function only --- FastTouch.ino | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 FastTouch.ino diff --git a/FastTouch.ino b/FastTouch.ino new file mode 100755 index 0000000..ab144d9 --- /dev/null +++ b/FastTouch.ino @@ -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); +} +