Public Access
Add HA dropdowns, off image, flip fixes and refresh effects
Home Assistant: remove the Clock switch (its entity is deleted on connect), add an IP sensor and Mode / Off image dropdowns whose options follow the saved bitmaps. Remove the built-in "Nintendo border" bitmap. Off image: a bitmap (or blank) left on the dots when the display switches off. Nano: pause after each flip pulse and repeat pulses for changed dots, both stored in EEPROM (G/N commands). Refresh effects (E command): instant, sparkle, wipe, rain, from the middle out, diagonal, spiral, flip all then reveal, push and random, optionally only for small changes. Effects run in steps from loop() so serial input keeps flowing. Web UI: flip settings, refresh effect and test patterns under Settings; the System tab shows why the ESP32 last restarted. Settings records from versions 1 and 2 are migrated. Firmware 2.3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4a5f6a8b5d
commit
1d3b084de1
42 files changed
+1631
-230
No files matched your search
@@ -3,7 +3,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "display/bitmap_store.h"
|
||||
#include "display/bitmaps.h"
|
||||
#include "display/text.h"
|
||||
|
||||
@@ -51,17 +50,9 @@ void FlipdotFrames::live()
|
||||
_drawFullScreen(_live);
|
||||
}
|
||||
|
||||
void FlipdotFrames::logo()
|
||||
void FlipdotFrames::off()
|
||||
{
|
||||
uint8_t logo[BITMAP_BYTES];
|
||||
if (loadBitmap("Nintendo", logo))
|
||||
_drawFullScreen(logo);
|
||||
}
|
||||
|
||||
void FlipdotFrames::blank()
|
||||
{
|
||||
_display.fillScreen(0);
|
||||
_display.display();
|
||||
_drawFullScreen(_off);
|
||||
}
|
||||
|
||||
void FlipdotFrames::setPageBitmap(const uint8_t *bitmap)
|
||||
@@ -74,6 +65,14 @@ void FlipdotFrames::setLiveBitmap(const uint8_t *bitmap)
|
||||
memcpy(_live, bitmap, BITMAP_BYTES);
|
||||
}
|
||||
|
||||
void FlipdotFrames::setOffBitmap(const uint8_t *bitmap)
|
||||
{
|
||||
if (bitmap)
|
||||
memcpy(_off, bitmap, BITMAP_BYTES);
|
||||
else
|
||||
memset(_off, 0, BITMAP_BYTES);
|
||||
}
|
||||
|
||||
void FlipdotFrames::_drawFullScreen(const uint8_t *bitmap)
|
||||
{
|
||||
_display.fillScreen(0);
|
||||
|
||||
Reference in new issue
Block a user