fix ble connection , ok !

This commit is contained in:
feeling001@gmail.com
2026-06-21 11:50:44 +02:00
parent c40d7516b1
commit d44aaa3318
13 changed files with 483 additions and 83 deletions
+9 -8
View File
@@ -23,10 +23,11 @@
#include <Fonts/FreeMonoBold12pt7b.h>
#include <Fonts/FreeMono9pt7b.h>
// ── Display model — Waveshare 4.2" mono GDEY042T81 (400×300) ─────────────────
// Adjust the model constant if your display differs.
using DisplayType = GxEPD2_BW<GxEPD2_420_GDEY042T81,
GxEPD2_420_GDEY042T81::HEIGHT>;
// ── Display model — match the validated reference sketch for the 4.2" panel.
// The generic 420 driver is used here to avoid a controller mismatch that can
// leave the panel completely blank during init.
using DisplayType = GxEPD2_BW<GxEPD2_420,
GxEPD2_420::HEIGHT>;
class DisplayManager {
public:
@@ -70,10 +71,10 @@ public:
private:
DisplayType _display {
GxEPD2_420_GDEY042T81(Pins::EPD_CS,
Pins::EPD_DC,
Pins::EPD_RST,
Pins::EPD_BUSY)
GxEPD2_420(Pins::EPD_CS,
Pins::EPD_DC,
Pins::EPD_RST,
Pins::EPD_BUSY)
};
bool _initialised = false;