I'm looking to convert an int value to a char array. currently I've found the following will return
int num = [number] str = String(num); str.toCharArray(cstr,16); Serial.println(cstr);
However, per Majenko's The Evils of Arduino Strings I feel like this code would make my Arduino's heap look like swiss cheese. Is there a better way to change an
[int] into a
char[n] array that avoids the String class?