#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;
// Beispiel 64x64 Bitmap (einfaches Muster)
// '8666629_wifi_icon, 64x64px
const uint8_t bitmap_64x64[] U8G_PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0,
0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x18, 0x1C, 0x0C, 0x06, 0x07, 0x03, 0x83, 0xC1, 0xC1, 0x60, 0x60, 0x60, 0x60, 0x30, 0x30,
0x30, 0x30, 0x60, 0x60, 0x60, 0x60, 0xC1, 0xC1, 0x83, 0x03, 0x07, 0x06, 0x0C, 0x1C, 0x18, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x01, 0x00, 0x20, 0x30, 0x30, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x30, 0x30, 0x20, 0x00, 0x01, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C,
0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
void setup() {
u8g.begin();
// u8g.setFont(u8g_font_tpssb);
// u8g.setColorIndex(1);
}
void loop() {
u8g.firstPage();
do {
//u8g.drawXBMP(0, 0, 128, 64, bitmap_64x64); // 64x64-Bitmap zeichnen
u8g.drawBitmapP( 0, 0, 128 / 8, 64, bitmap_64x64);
} while (u8g.nextPage());
delay(1000); // 1 Sekunde warten
// u8g.firstPage();
// do {
// u8g.drawStr(25, 50, "Progress Bar");
// u8g.drawFrame(0, 10, 128, 20);
// u8g.drawBox(10, 15, progress, 10);
// } while ( u8g.nextPage() );
// if (progress < 108) {
// progress++;
// } else {
// progress = 0;
// }
}