* companion: SSD1306 display now dynamically detected at runtime.

This commit is contained in:
Scott Powell committed 2025-03-16 13:42:36 +11:00
1 parent 0edb67ae38
commit 968ccc47a3
5 files changed
+50 -16

No files matched your search

+2
View File
@@ -3,6 +3,7 @@
#include "DisplayDriver.h"
#include <Wire.h>
#include <Adafruit_GFX.h>
#define SSD1306_NO_SPLASH
#include <Adafruit_SSD1306.h>
#ifndef PIN_OLED_RESET
@@ -18,6 +19,7 @@ class SSD1306Display : public DisplayDriver {
bool _isOn;
uint8_t _color;
bool i2c_probe(TwoWire& wire, uint8_t addr);
public:
SSD1306Display() : DisplayDriver(128, 64), display(128, 64, &Wire, PIN_OLED_RESET) { _isOn = false; }
bool begin();