Increase OLED refresh rate
This commit is contained in:
parent
8dab83dad6
commit
17f9cd6367
|
@ -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 ");
|
||||
|
||||
|
|
Loading…
Reference in a new issue