#include <TinyWireM.h>
//#include <Tiny4kOLED.h>
#include <ssd1306xled.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
int carWidth = 24, carHeight = 24;
const unsigned char car_bitmap_2[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xfe, 0xbe, 0xff, 0xff, 0xcf, 0xcf, 0xff, 0xff, 0xbe,
0xfe, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xff,
0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0xff, 0xff, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x7f, 0x7f, 0xfc, 0xbc, 0x7c, 0x7c, 0xbc, 0xfc, 0x7f,
0x7f, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
void setup() {
/*
oled.begin(SCREEN_WIDTH, SCREEN_HEIGHT, sizeof(tiny4koled_init_128x64br), tiny4koled_init_128x64br);
oled.clear();
oled.on();
*/
SSD1306.ssd1306_init();
}
void loop() {
for (int i = 0; i < SCREEN_WIDTH; i++){
/*
oled.clear();
oled.bitmap(i, i/8, i+carWidth, (i+carHeight)/8, car_bitmap_2);
*/
SSD1306.ssd1306_fillscreen(0);
SSD1306.ssd1306_draw_bmp(i, i/8, i+carWidth, (i+carHeight)/8, car_bitmap_2);
delay(100);
}
}