From f34b1e2fbd94bcc8d0ee2e2e2e43e214d0b329a1 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Mon, 11 May 2026 14:01:44 +0530 Subject: Migrate to PlatformIO Now since i have been able to make PSRAM working with platformio, i don't have to use this shitty Arduino-IDE anymore which does not even allow me to use subfolders like a normal programmer would do --- src/ui/display.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/ui/display.cpp (limited to 'src/ui/display.cpp') diff --git a/src/ui/display.cpp b/src/ui/display.cpp new file mode 100644 index 0000000..12c9ac9 --- /dev/null +++ b/src/ui/display.cpp @@ -0,0 +1,16 @@ +#include "display.h" +#include +#include "config.h" + + +U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2( + U8G2_R0, + U8X8_PIN_NONE +); + +void displayInit() +{ + Wire.begin(OLED_SDA_PIN, OLED_SCL_PIN); + u8g2.begin(); + u8g2.setFont(u8g2_font_6x12_tr); +} -- cgit v1.2.3