Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String MinhaStr = "1234";
- int MeuInt = 1678;
- String NovaStr ;
- int NovoInt;
- //-----------------
- void setup()
- {
- Serial.begin(9600);
- }
- //-----------------------
- void loop()
- {
- NovoInt = (MinhaStr.toInt()); // String para int
- Serial.print(NovoInt);
- NovaStr = String(MeuInt); // Int para String
- Serial.print( NovaStr);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement