Hello !
I would like to make some arithmetic, not sure how to do it. Here is my code :
case 'H': //stabtrim test
delay (11);
stabtrim = "";
stabtrim += getChar();
stabtrim += getChar();
stabtrim += getChar();
stabtrim += getChar();
if (stabtrim != stabtrimold){
lcd.setCursor(0, 0);
delay (11);
// newstabtrim = (0.1289 x stabtrim) + 4.1
lcd.print("Trim : " + stabtrim);
stabtrimold = stabtrim;
}
break;
So, as you can see in comments, I have to change the stabtrim value with the formula to display newstabtrim. Any idea how I can do it ?