Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AbstractBeliefs/d48af9847a871384b82bdaebc72c709c to your computer and use it in GitHub Desktop.

Select an option

Save AbstractBeliefs/d48af9847a871384b82bdaebc72c709c to your computer and use it in GitHub Desktop.
int speed = 0;
char speed_str[5];
void setup() {
}
void loop() {
speed_str = toString(speed);
}
// converts int to char array
char * toString(int num){
char str[5];
String s = String(num);
s.toCharArray(str,5);
return str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment