feat: add vibration feedback support for UI events

- Add genericVibration class with 5-second cooldown and 1-second pulse
- Integrate vibration triggers for new messages and contact discoveries
- Add conditional compilation support with PIN_VIBRATION guard
- Implement abstract interface for vibration in UITask system
Este commit está contenido en:
csrutil
2025-09-17 08:56:18 +08:00
padre d86851b881
commit 2da50882c0
Se han modificado 6 ficheros con 112 adiciones y 0 borrados
+3
Ver fichero
@@ -42,5 +42,8 @@ public:
virtual void msgRead(int msgcount) = 0;
virtual void newMsg(uint8_t path_len, const char* from_name, const char* text, int msgcount) = 0;
virtual void soundBuzzer(UIEventType bet = UIEventType::none) = 0;
#ifdef PIN_VIBRATION
virtual void triggerVibration() = 0;
#endif
virtual void loop() = 0;
};