esp32-ogn-tracker icon indicating copy to clipboard operation
esp32-ogn-tracker copied to clipboard

Charge Mode

Open lupus78 opened this issue 5 years ago • 1 comments

My other tweak idea is to introduce a "Charge mode".

My issue was that we have 2 trackers and when I charge both of them in the same time it's in constant beeping because of collision warning. It's annoying and unnecessary.

I made the code (but for the old OLED screen, have to rework for the new), this is what it did:

  1. in main.cpp after IO_Configuration(); the code showed a message: "Press and Hold PRG Button for Charge Mode"
  2. Wait for 2500ms and check if the button is pressed.
  3. If pressed, show and other screen "Charging Mode ON: 3.765 Volts". The screen turned off after 1000ms, and turned back on when the PRG button was pressed again for other 1000ms, for you to check the charging progress. The code executing stuck here, and never got to the task create section. Thus no radio communication, etc.
  4. If you want to use the tracker normally you have to reset/restart.

Do you find this feature useful?

lupus78 avatar Apr 27 '20 11:04 lupus78

Can you add this code with a conditional compile say when WITH_CHARGE_MODE is defined and the see how it works ?

pjalocha avatar Apr 27 '20 16:04 pjalocha