#include <U8glib.h>
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
// const unsigned char PROGMEM alert[] = {
// // Bitmap data (example 16x16 image)
// // This is just an example, replace it with your own bitmap data
// 0x00, 0x00, 0x01, 0x80, 0x03, 0xc0, 0x02, 0x40, 0x04, 0x20, 0x04, 0x20, 0x09, 0x90, 0x19, 0x98,
// 0x11, 0x88, 0x21, 0x84, 0x20, 0x04, 0x40, 0x02, 0xc0, 0x03, 0x80, 0x01, 0x7f, 0xfe, 0x00, 0x00
// };
// const unsigned char epd_bitmap_danger [] PROGMEM = {
// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
// 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x00, 0x00,
// 0x81, 0x00, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0xc0, 0x00, 0x00, 0x02, 0x00,
// 0x40, 0x00, 0x00, 0x06, 0x00, 0x60, 0x00, 0x00, 0x04, 0x00, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x30,
// 0x00, 0x00, 0x08, 0x3c, 0x10, 0x00, 0x00, 0x10, 0x24, 0x08, 0x00, 0x00, 0x30, 0x24, 0x0c, 0x00,
// 0x00, 0x20, 0x24, 0x04, 0x00, 0x00, 0x60, 0x24, 0x06, 0x00, 0x00, 0x40, 0x24, 0x02, 0x00, 0x00,
// 0xc0, 0x24, 0x03, 0x00, 0x00, 0x80, 0x24, 0x01, 0x00, 0x01, 0x80, 0x24, 0x01, 0x80, 0x03, 0x00,
// 0x24, 0x00, 0xc0, 0x02, 0x00, 0x24, 0x00, 0x40, 0x06, 0x00, 0x24, 0x00, 0x60, 0x04, 0x00, 0x24,
// 0x00, 0x20, 0x0c, 0x00, 0x3c, 0x00, 0x30, 0x08, 0x00, 0x00, 0x00, 0x10, 0x18, 0x00, 0x00, 0x00,
// 0x18, 0x30, 0x00, 0x18, 0x00, 0x0c, 0x20, 0x00, 0x3c, 0x00, 0x04, 0x20, 0x00, 0x3c, 0x00, 0x04,
// 0x60, 0x00, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x1c,
// 0x00, 0x00, 0x00, 0x38, 0x0f, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
// };
void setup() {
// put your setup code here, to run once:
u8g.setColorIndex(1); // Set color index to 1 for drawing white
u8g.setFont(u8g_font_6x10); // Set font (optional)
u8g.firstPage();
do {
//u8g.drawBitmapP(45,5,5,40, epd_bitmap_danger);
u8g.drawStr(40,33,"Loading ... ");
} while( u8g.nextPage() );
}
void loop() {
// put your main code here, to run repeatedly:
//for (int i = 0; i < 1; i++) {
tone(10,1000);
delay(1000);
noTone(10);
delay(1000);
//}
}