mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-10-20 04:22:10 +00:00
Fix buzzer notifications, unread tracking, OLED dimming; remove dead code
- MyMesh: notify() now always fires for channel/contact messages regardless of serial connection; called after addChannelMsg so channel index is set - ChannelHist: fix unread watermark direction (histEntry is newest-first, index 0=newest); counter now decrements correctly as user reads messages - ChannelHist: reset unread to 0 after sending (user is active in channel) - SH1106Display: add pre-charge register (0xD9) to setBrightness for wider dimming range; re-apply contrast+precharge in turnOn(); tune curve - UITask: remove MsgPreviewScreen dead code (~180 lines, never shown) - UITask: fix strcpy→snprintf in showAlert() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
40f470ebf2
commit
861a65d4b1
@@ -19,11 +19,13 @@ class SH1106Display : public DisplayDriver
|
||||
Adafruit_SH1106G display;
|
||||
bool _isOn;
|
||||
uint8_t _color;
|
||||
uint8_t _contrast;
|
||||
uint8_t _precharge;
|
||||
|
||||
bool i2c_probe(TwoWire &wire, uint8_t addr);
|
||||
|
||||
public:
|
||||
SH1106Display() : DisplayDriver(128, 64), display(128, 64, &Wire, PIN_OLED_RESET) { _isOn = false; }
|
||||
SH1106Display() : DisplayDriver(128, 64), display(128, 64, &Wire, PIN_OLED_RESET) { _isOn = false; _contrast = 255; _precharge = 0x1F; }
|
||||
bool begin();
|
||||
|
||||
bool isOn() override { return _isOn; }
|
||||
|
||||
Reference in New Issue
Block a user