Increase OLED refresh rate

This commit is contained in:
Laura Hausmann 2023-04-21 19:27:59 +02:00
parent 8dab83dad6
commit 17f9cd6367
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -15,6 +15,8 @@ OLED::OLED(U8G2 u8g2) {
void OLED::begin() {
u8g2.begin();
// default value is 0x80, clock divide ratio (0x00=1) and oscillator frequency (0x8)
u8g2.sendF("ca", 0xd5, 0xF0); // set the clock divider to something faster (so we get a better framerate)
u8g2.setFont(u8g2_font_bpixel_te);
u8g2_uint_t maxLength = 127 - u8g2.getUTF8Width("00:00:00 ");