Created
May 17, 2017 20:07
-
-
Save AbstractBeliefs/d48af9847a871384b82bdaebc72c709c to your computer and use it in GitHub Desktop.
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
| 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