leds refactor/improvement

This commit is contained in:
liquidraver
2026-09-03 14:34:12 +02:00
parent 355ce04b21
commit 1633274e4f
17 changed files with 530 additions and 31 deletions
+5
View File
@@ -24,6 +24,11 @@ public:
virtual const char *getManufacturerName() const = 0;
virtual void onBeforeTransmit() {}
virtual void onAfterTransmit() {}
/* A valid packet has just been received. Unlike the transmit pair this is
* a single edge, not a window: the packet is already over by the time the
* radio tells us, so an implementation that drives an LED has to fire a
* one-shot rather than hold a level. */
virtual void onPacketReceived() {}
virtual void reboot() = 0;
virtual void powerOff() {}
virtual void sleep(uint32_t secs) { (void)secs; }