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
Serial.println() is interfering with CircuitPlayground.readCap()
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Fw123
- Posts: 1
- Joined: Mon Sep 18, 2023 10:40 am
- mikeysklar
- Posts: 11727
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Serial.println() is interfering with CircuitPlayground.readCap()
That is bizarre that the addition of a newline would have any effect (Serial.println()).
Does the behavior still happen when everything is current (IDE, CP library, bootloader)?
What version of the Arduino IDE are you running?
What version of the CircuitPlayground library are you using?
What model of the Circuit Playground are you using?
Does the behavior still happen when everything is current (IDE, CP library, bootloader)?
What version of the Arduino IDE are you running?
What version of the CircuitPlayground library are you using?
What model of the Circuit Playground are you using?
Please be positive and constructive with your questions and comments.