Updated font type

This commit is contained in:
Stefan Kremser
2018-03-28 09:37:06 +02:00
parent 5a1cc5bc13
commit 485bfd1085
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,11 @@ void DisplayUI::setupDisplay() {
// ===== adjustable ===== // // ===== adjustable ===== //
// initialize display // initialize display
display.init(); display.init();
/*
In case of a compiler (conversion char/uint8_t) error,
make sure to have version 4 of the display library installed
https://github.com/ThingPulse/esp8266-oled-ssd1306/releases/tag/4.0.0
*/
display.setFont(DejaVu_Sans_Mono_12); display.setFont(DejaVu_Sans_Mono_12);
display.setContrast(255); display.setContrast(255);
display.flipScreenVertically(); display.flipScreenVertically();

View File

@@ -156,7 +156,7 @@ class DisplayUI {
// ===== FONT ===== // // ===== FONT ===== //
// Created by http://oleddisplay.squix.ch/ Consider a donation // Created by http://oleddisplay.squix.ch/ Consider a donation
// In case of problems make sure that you are using the font file with the correct version! // In case of problems make sure that you are using the font file with the correct version!
const char DejaVu_Sans_Mono_12[] PROGMEM = { const uint8_t DejaVu_Sans_Mono_12[] PROGMEM = {
0x07, // Width: 7 0x07, // Width: 7
0x0F, // Height: 15 0x0F, // Height: 15
0x20, // First Char: 32 0x20, // First Char: 32