NetDeck: transparent color-key dither for the freeze tint

- stampImage16_P(): PROGMEM 16bpp stamp with color-key transparency
  (ND_TRANS16 pixels leave the destination untouched) — TFT_eSprite has
  no transparent pushImage variant, so it composites via drawPixel on
  both backends (sprite RAM on device, host framebuffer in the emulator)
- shim: pgm_read_byte/word/dword macros (flash is memory-mapped on
  host and ESP32 alike)
- pattern: 2px checker of black dots + transparent cells — half-visible
  dither, map/units stay readable underneath
- E2E now proves the transparency itself: wall pixels survive under
  transparent cells, dots render black, key color never rendered
This commit is contained in:
Dejvino
2026-11-14 15:33:25 +01:00
parent 83ec0217f4
commit cd688b8abe
3 changed files with 45 additions and 21 deletions
+3
View File
@@ -12,6 +12,9 @@
// Host flash is memory-mapped, so flash-resident data needs no special read
// macro (same as on ESP32; real AVR pgm_read is not used by our sketches).
#define PROGMEM
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#define pgm_read_word(addr) (*(const unsigned short *)(addr))
#define pgm_read_dword(addr) (*(const unsigned long *)(addr))
#include <cstdint>
#include <cstddef>