//#include <Arduino.h>
#include <U8g2lib.h>
//#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
//#endif
int i;
/*
U8g2lib Example Overview:
Frame Buffer Examples: clearBuffer/sendBuffer. Fast, but may not work with all Arduino boards because of RAM consumption
Page Buffer Examples: firstPage/nextPage. Less RAM usage, should work with all Arduino boards.
U8x8 Text Only Example: No RAM usage, direct communication with display controller. No graphics, 8x8 Text only.
*/
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display
// End of constructor list
// 'Sem título', 31x14px
const unsigned char epd_bitmap_Sem_t_tulo [] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0xf8, 0x00, 0x00, 0x80, 0x88, 0x01, 0x00,
0x80, 0x88, 0x01, 0x00, 0xb8, 0x88, 0xe8, 0x0e, 0xcc, 0xf8, 0x98, 0x19, 0x84, 0x88, 0x89, 0x11,
0x84, 0x08, 0x89, 0x11, 0x84, 0x08, 0x89, 0x11, 0xcc, 0x88, 0x89, 0x11, 0xb8, 0xf8, 0x88, 0x11,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
void draw(void)
{
u8g2.drawXBMP( 0, 0, 31, 14, epd_bitmap_Sem_t_tulo);
}
void setup()
{
// put your setup code here, to run once:
u8g2.begin();
u8g2.clearBuffer();
}
void loop()
{
// put your main code here, to run repeatedly:
u8g2.firstPage();
do
{
draw();
}while(u8g2.nextPage());
delay(1000);
}