Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created February 8, 2017 17:35
Show Gist options
  • Save robertcedwards/0b65e089e21456f60e8fba09b181c606 to your computer and use it in GitHub Desktop.
Save robertcedwards/0b65e089e21456f60e8fba09b181c606 to your computer and use it in GitHub Desktop.
Arduino convert int to 5 character const char
current_SampleRate = current_SampleRate / 2; // half the sample rate each time
char c[5];
String str;
str = String(current_SampleRate);
str.toCharArray(c, 5);
u8x8.draw2x2String(0, 5, c);
u8x8.drawString(8, 5, "Hz");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment