char Incoming_value = 0; char p ; char m2; int p2 =0; int palab=0 ; int b = 0; int m=0; String mp= "lo"; String lp= "rt"; char tmp; void setup() { // put your setup code here, to run o Serial.begin(9600); pinMode(13, OUTPUT); } void loop() { // put your main code here, to run repeatedly: if(Serial.available() > 0) { m2= Serial.read(); //if (m2 == 'v') {m = 555;} //if (m2 == 'c') {m = 333;} if ((m2)== 'C'){ palab =Serial.parseInt(); if (palab >0) {b =palab;} m = b*2;} if ((m2)== 'B'){ palab =Serial.parseInt(); if (palab >0) {b =palab;} m = b*3;} } //Serial.print (millis()/100); Serial.print ("A98745"); Serial.print ("!"); Serial.print ("B987"); Serial.print ("!"); //Serial.print ("B"); //Serial.print ("25"); //Serial.println ("!"); //Serial.print ("C"); //Serial.println ("*"); delay(100); //Serial.print(p2); // Serial.print ("k");