Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created November 28, 2017 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/8e2a1030fd9f1887ef74217f5c41ea47 to your computer and use it in GitHub Desktop.
Save esmarr58/8e2a1030fd9f1887ef74217f5c41ea47 to your computer and use it in GitHub Desktop.
String vectorCaracteres = "12156";
char vectorChar[10];
void setup() {
vectorCaracteres.toCharArray(vectorChar,10);
int numeroEntero = atoi(vectorCaracteres2);
Serial.begin(9600);
Serial.print("El numero entero es: ");
Serial.println(numeroEntero);
}
void loop() {
//Ciclo infinito
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment