Serial.println() is interfering with CircuitPlayground.readCap()

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
Fw123
 
Posts: 1
Joined: Mon Sep 18, 2023 10:40 am

Serial.println() is interfering with CircuitPlayground.readCap()

Post by Fw123 »

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

User avatar
mikeysklar
 
Posts: 11727
Joined: Mon Aug 01, 2016 8:10 pm

Re: Serial.println() is interfering with CircuitPlayground.readCap()

Post by mikeysklar »

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?

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”