Answer: You need to convert the integer value to ASCII value.
To draw numbers on the display you can use the itoa() function from stdlib.h like the following Arduino sketch code. Itoa() converts an integer to ASCII data and stores it in a passed-in character array.
-
int test = 34;
-
char buffer[3];
-
itoa(test, buffer, 10);
-
write(buffer[0]);
-
write(buffer[1]);
This code prints “34” to a character display.