Created
April 16, 2013 12:59
-
-
Save philippbosch/5395696 to your computer and use it in GitHub Desktop.
sprintf() in Arduino code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hola como puedo en arduino
ingresando numeros por teclado que cree una cadena numerica
enves de que se sumen?