Skip to content Skip to sidebar Skip to footer

Arduino Uno Convert String To Int Code Example


Example: arduino string to int

void loop() {   Serial.readBytes(mystr,5); //Read the serial data and store in var    //delay(1000);      String val = mystr;    int i = val.toInt();   int num = i + i;   Serial.println(num);    }

Post a Comment for "Arduino Uno Convert String To Int Code Example"