Browse Source

GPIO_00 and GPIO_02 can't be used for capacitive touch.

Connected with other hardware (Key, resistors for bootup)
main
Hendrik Langer 8 years ago
parent
commit
7abea154be
  1. 7
      src/main.cpp

7
src/main.cpp

@ -19,14 +19,15 @@ void loop()
{ {
// turn the LED on (HIGH is the voltage level) // turn the LED on (HIGH is the voltage level)
if ( touchRead(T0) < 50 if ( touchRead(T0) < 50
|| touchRead(T1) < 50 // || touchRead(T1) < 50 // GPIO 00
|| touchRead(T2) < 50 // || touchRead(T2) < 50 // GPIO 02
|| touchRead(T3) < 50 || touchRead(T3) < 50
|| touchRead(T4) < 50 || touchRead(T4) < 50
|| touchRead(T5) < 50 || touchRead(T5) < 50
|| touchRead(T6) < 50 || touchRead(T6) < 50
|| touchRead(T7) < 50 || touchRead(T7) < 50
|| touchRead(T8) < 50 ) { || touchRead(T8) < 20
|| touchRead(T9) < 20) {
digitalWrite(LED_PIN, HIGH); digitalWrite(LED_PIN, HIGH);
} else { } else {
// turn the LED off by making the voltage LOW // turn the LED off by making the voltage LOW

Loading…
Cancel
Save