blinking text print to bluetooth

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
estefun
 
Posts: 1
Joined: Sun Nov 20, 2022 6:51 pm

blinking text print to bluetooth

Post by estefun »

Hello.

I wanted to print some sensor values to bluetooth.
I use softwareserial in combination with ardutooth
from Frederik Hauke.
It is working fine, but I want to make the text flashing
if certain sensor gets over a specific value. I tried a lot
but could not succeed. All functions I tried work to an
certain extend, but the problem is, that if I repeat the
printing command it switches to a new line in the app.

Tc1 is the value of my sensor. What I achieved to get
working, is to add these flashing "!!!". It is ok., but I
prefer to have the whole text (Tc1) flashing.

Every other idea appreciated!

ESTEFUN

Code: Select all

//Printing   
   
    if (millis() - timer0 > 500) {

//bluetooth
 
BTserial.print(Tc1);   
if ( (Tc1)>32){ if (millis() - timerbluetooth > 1000) {
timerbluetooth = millis();
  }
else if (millis() - timerbluetooth > 200) {
BTserial.print(" !!!");
  }}
BTserial.print(" C");
BTserial.print(",");

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: blinking text print to bluetooth

Post by adafruit_support_mike »

What device is displaying the text?

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

Return to “Arduino”