// Libraries
#include <U8x8lib.h> //oled ssd1306

// If have SPI
#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif

#define OLED_RESET -1   // Reset pin

//Deffine sensor
U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);

uint8_t tiles[16] = { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};

void setup() {
  Serial.begin(115200);

  u8x8.begin();
  u8x8.setPowerSave(0);
  u8x8.setFont(u8x8_font_pxplusibmcgathin_r);
}

void loop() {
  u8x8.drawString(3, 3, "SD Card...");
  
  for(byte i = 0; i < 14; i++){
    u8x8.drawTile(1+i, 5, 2, tiles);
    delay(500);
  }

  u8x8.refreshDisplay();
  delay(2000);
}