Created
October 27, 2015 10:55
-
-
Save michaelsarduino/d15b9573b107b6d1b201 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CapacitiveSensor.h> | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); //Touch Sensor mit Pin 4 als Sender und Pin 2 als Empfaenger | |
void setup() | |
{ | |
cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
long start = millis(); | |
long status1 = cs_4_2.capacitiveSensor(30); | |
Serial.println(status1); //Senden der Auswertung | |
delay(1000); //kurze Pause | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment