summaryrefslogtreecommitdiff
path: root/src/components/battery/BatteryController.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-07-11Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants1-10/+3
Refactor battery percent : only use uint8_t to store the battery % remaining.
2021-07-04Whitespace and brace fixes (#456)Avamander1-1/+2
* Brace style and whitespace fixes * Additional whitespace fixes
2021-07-02Float voltage to int (#444)Riku Isokoski1-5/+9
* Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
2021-07-02static_cast cleanupAvamander1-1/+1
2021-05-16Emit event on power-present toggle (#320)David Ventura1-1/+0
* Emit event on power-present toggle * clang-format on changes * also update battery status on any event * update comments; remove double battery update * Fix formatting * Vibrate shortly on charging event * debounce charge event
2021-04-24Reformatted all the files according to clang-format styleAvamander1-41/+37
2021-04-16In order to stabilize the battery reading,Joaquim1-6/+17
I modified the process to make 5 consecutive readings, as the process is asynchronous, there is no interference in the main process.
2021-04-08restore battery bufferJoaquim1-8/+2
2021-04-05Fix wake up lock in twiJoaquim1-27/+21
optimize battery code
2021-04-04double tap wakeup error fixJoaquim1-17/+57
battery nonblocking read
2021-01-16Converted percent remaining calc to int.panky-codes1-3/+3
2021-01-14Implemented a circular buffer and added an average alg for batter remaining ↵panky-codes1-1/+3
percentage.
2020-11-16Include cleanup: componentsokaestne1-2/+1
2020-10-02Fixed all the includes that were broken due to the renamesAvamander1-0/+48