Serial.println() is interfering with CircuitPlayground.readCap()
Posted: Mon Sep 18, 2023 10:44 am
I'm working on a project using the adafruit circuit playground bluefruit where I need to detect capacitive touch on specific pins and combinations.
The capacitive sensing works find when I don't use Serial.println() but when I add that command the output of the capacitive touch is always 65534 regardless of whether or not I'm touching it.
A work around I found is to use
Serial.print(CircuitPlayground.readCap(3));
Serial.print("\r\n");
instead. This works fine but I'm just wondering why Serial.println() doesn't work for me
The capacitive sensing works find when I don't use Serial.println() but when I add that command the output of the capacitive touch is always 65534 regardless of whether or not I'm touching it.
A work around I found is to use
Serial.print(CircuitPlayground.readCap(3));
Serial.print("\r\n");
instead. This works fine but I'm just wondering why Serial.println() doesn't work for me