UART with Circuit Playground Bluefruit & Connect App without

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.
Locked
User avatar
romano47
 
Posts: 14
Joined: Tue Jul 07, 2015 12:30 pm

UART with Circuit Playground Bluefruit & Connect App without

Post by romano47 »

I'm new to the Bluefruit Connect App, and am wondering whether it's even possible to connect to the CP Bluefruit via UART without opening the serial monitor first?

I'd like to be able to plug (and unplug) the device from an outlet without having to reconnect to my laptop. Would be great to know if there are any workarounds, alternate solutions, OR whether this is just par for the course.

Thanks!

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

Re: UART with Circuit Playground Bluefruit & Connect App wit

Post by mikeysklar »

You should be able to use the CP Bluefruit without a mandatory console, but you might need to modify the code. There is often a wait for serial loop that looks like this on the Arduino side:

Code: Select all

 Serial.begin(9600);
  while (! Serial); // Wait untilSerial is ready - Leonardo
  Serial.println("Enter LED Number 0 to 7 or 'x' to clear");
You would need to comment out the while(!Serial) line.

Which code example have you been using or if you like paste in the code that you have been using here.

User avatar
romano47
 
Posts: 14
Joined: Tue Jul 07, 2015 12:30 pm

Re: UART with Circuit Playground Bluefruit & Connect App wit

Post by romano47 »

Gah, so easy. Thank you (and, I should have scrutinized the code more before posting). This worked perfectly.

Locked
Please be positive and constructive with your questions and comments.

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