Adds `_alert[80]` which can be set along with `_needs_refresh`
to trigger a simple on screen alert that lasts 1s at this time.
Implements POC with double press to advert action
Pulled the class out of main.cpp, made a header to go along with it, externed globals in headers to make them accessible to button code. Added button code to send an advert on double press. Refactored ini files to prevent linker errors.
Added a new UITask shutdown method to run non-board specific shutdown code. This avoids having to update all the board files for different hardware.
UITask::shutdown(bool restart = false);
Where the buzzer is available and defined, the RTTTL shutdown melody is played when the button is held down for >5s.
I was a bit remiss in removing the tone for channel message event - this puts one in.
So: DM event - plays a tone (per current)
Channel Message - new shorter tone
All others aren't defined at present. Need muting function before we get too carried away.
I was a bit remiss in removing the tone for channel message event - this puts one in.
So: DM event - plays a tone (per current)
Channel Message - new shorter tone
All others aren't defined at present. Need muting function before we get too carried away.
- Added getTextWidth method to DisplayDriver interface
- Implemented getTextWidth in all display classes
- Updated examples to use getTextWidth directly