#include "vars.h"
#include "func.h"
#include "TinyWireM.h"
#include "Tiny4kOLED.h"
#include "font16x32digits.h"
#include "font11x16.h"
#include "PixelOperatorBold.h"
void setup() {
pinMode(dip1, INPUT_PULLUP);
pinMode(dip2, INPUT_PULLUP);
pinMode(dip3, INPUT_PULLUP);
oled.begin(width, height, sizeof(tiny4koled_init_128x64br), tiny4koled_init_128x64br);
}
void loop() {
getState(dip1, dip2, dip3);
getMode(state);
drawDice(diceValue, 64 - 8*diceValueLen);
oled.on();
delay(1000);
oled.clear();
oled.switchRenderFrame();
oled.clear();
oled.switchRenderFrame();
delay(50);
}
void drawDice(byte diceValue, byte xposition){
oled.clear();
oled.setFont(FONT16X32DIGITS);
oled.setCursor(xposition, 2);
oled.print(diceValue);
}