Page 1 of 1

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

Posted: Mon Sep 18, 2023 10:44 am
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

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

Posted: Wed Sep 20, 2023 10:10 pm
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?

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

Posted: Thu Nov 09, 2023 3:09 pm
by Fw123
this was fixed by upgrading the bootloader!

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

Posted: Thu Nov 09, 2023 5:19 pm
by mikeysklar
Cool. Thank you for the followup and taking the time to get the board up to date.