Skip to content

Instantly share code, notes, and snippets.

@philippbosch
Created April 16, 2013 12:59
Show Gist options
  • Save philippbosch/5395696 to your computer and use it in GitHub Desktop.
Save philippbosch/5395696 to your computer and use it in GitHub Desktop.
sprintf() in Arduino code
unsigned int i = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
char buffer[50];
sprintf(buffer, "the current value is %d", i++);
Serial.println(buffer);
}
@Martin7Hacker
Copy link

hola como puedo en arduino
ingresando numeros por teclado que cree una cadena numerica
enves de que se sumen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment