I have Arduino Uno and 0.96" I2C Oled 4 Pinned display. These are my Arduino codes:
#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE); // VDD=5V SCL=A5 SDA=A4
int a = 10;
void setup(void) {
}
void loop(void) {
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(8, 30, "E");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(30, 30,"l");
delay(2000);
// u8g.println(a); //This code raw is not working
// delay(2000);
}
I am trying to indicate integer type variable is called "a" to the OLED screen, but u8glib library hasn't got
println( (int) a );
function to do this. I only see
u8g.drawStr();
function that this can't handle integer variables to the display. How can I do that?