mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-17 17:11:30 +10:00
Marker boxes, the own-node bullseye, and the labeled-marker cross were all hardcoded in pixels (11px box, r=8 circle, 12px cross). On the T5S3 with a 12pt fontSmall (~17px line height) the hop-count digit overflowed its box entirely. Sizes now derive from fontSmall.lineHeight() so the applet renders correctly on both small (6pt) and large (12pt+) display variants. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
NicheGraphics
A pattern / collection of resources for creating custom UIs, to target small groups of devices which have specific design requirements.
For an example, see the heltec-vision-master-e290-inkhud platformio env.
-
platformio.ini
- suppress default Meshtastic components (Screen, ButtonThread, etc)
- define
MESHTASTIC_INCLUDE_NICHE_GRAPHICS - (possibly) Edit
build_src_filterto include our new nicheGraphics.h file
-
nicheGraphics.h
#includeall necessary components- perform all setup and config inside a
setupNicheGraphics()method