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(",");