Created
February 8, 2017 17:35
-
-
Save robertcedwards/0b65e089e21456f60e8fba09b181c606 to your computer and use it in GitHub Desktop.
Arduino convert int to 5 character const char
This file contains 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
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