richonguzman / LoRa_APRS_Tracker

LoRa APRS Tracker with Tx and Rx capabilities, Messages, Wx, Winlink and more...
MIT License
168 stars 45 forks source link

fast shutdown with multiClick #73

Closed formtapez closed 3 months ago

formtapez commented 3 months ago

To quickly power off the tracker you now can triple-press the user button.

formtapez commented 3 months ago

After using this feature for one week now, i never want to live without that 😀 When leaving the car, you are not forced to hold the button for 5 secs - Nobody has the time for that 😂 Should be easy to merge...

richonguzman commented 3 months ago

I was reading all the code , how is the "three pushes" called? where is written it?

or was I missing this as the "OneButton" library?

formtapez commented 3 months ago

The 3-push-event is registered in LoRa_APRS_Tracker.cpp via userButton.attachMultiClick() The function is already present in some library - that code is not from me, but it works great 😀

The exact line is here: https://github.com/richonguzman/LoRa_APRS_Tracker/pull/73/commits/0859c00af7ed7fa2b9412fc57c625e41122fe65e#diff-84bd53ddfeb48acb76ec3558d4cd2ef05c2a5f6182d8b039c8ab4b93db5f90edR197

formtapez commented 3 months ago

Did you find it?

formtapez commented 3 months ago

Can we get this merged please?

richonguzman commented 3 months ago

sorry sorry, was waiting for mods on the lora functions to add this all

but will add this sooner for you