#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0 | U8G_I2C_OPT_NO_ACK | U8G_I2C_OPT_FAST); // Fast I2C / TWI
int progress = 0;
void setup() {
u8g.setFont(u8g_font_profont11);
u8g.setColorIndex(1);
}
void loop() {
char str[4] = "C++";
u8g.firstPage();
int x = 112, y = 0;
do {
u8g.drawStr(0, 50, "\x7E\x7F");
u8g.drawFrame(0, 10, 128, 20);
u8g.drawBox(10, 15, progress, 10);
u8g.drawLine(x, y + 2, x + 5, y + 5);
} while ( u8g.nextPage() );
if (progress < 108) {
progress++;
} else {
progress = 0;
}
}