Closed moo06 closed 4 years ago
Hi,
what type of variable you're trying to print?
Hi, It is an analogRead() because I'm debugging the button values so I can make a tech demo. Since I'm using an ATTINY85, and I'm using practically all the pins, I can only try and show it on the screen.
Thanks
Hi here is an example for printing numbers:
#include "ssd1306.h"
#include <stdio.h>
void printNumber(int x, int y, int number)
{
char intStr[12];
snprintf(intStr, sizeof(intStr), "%i", number );
ssd1306_printFixed (x, y, intStr, STYLE_NORMAL);
}
Dup of #96
Did the example above help you?
Hi, yes thank you.
Hi, Is there any way I could print a variable onto the OLED?
Thanks