summaryrefslogtreecommitdiff
path: root/src/components/battery
AgeCommit message (Collapse)Author
2022-06-06Set battery voltage corresponding to 0% as 3.6 VMichele Bini
2021-12-04Switched to non-deprecated math headerAvamander
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
2021-10-09Don't measure and notify percentage on charging event.Riku Isokoski
2021-10-03Improve battery percentage calculation and reportingRiku Isokoski
While charging, percentage should only go up, and while discharging, percentage should only go down.
2021-09-22Show plug icon while plugged inRiku Isokoski
2021-09-22Merge branch 'develop' into detect_full_chargeRiku Isokoski
2021-09-13Merge branch 'develop' into pinmaphubmartin
2021-09-03Use percentage instead of IsFullRiku Isokoski
2021-09-03Detect full charge and improve watchface displayRiku Isokoski
2021-08-14Make battery reading periodic. Add events. Disable pullupRiku Isokoski
2021-08-11Merge branch 'develop' into pinmaphubmartin
2021-08-03Cleanup, set Pinetime as defaulthubmartin
2021-08-03PinMap with namespace and constexprhubmartin
2021-08-02DRAFT: Put gpio pins to separate filehubmartin
2021-08-01Remove floating point calculationRiku Isokoski
2021-07-27Increase ADC precisionRiku Isokoski
2021-07-13Merge branch 'develop' into fix_adcRiku Isokoski
2021-07-12Fix misconfigured ADC and remove now unnecessary filteringRiku Isokoski
2021-07-11Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants
Refactor battery percent : only use uint8_t to store the battery % remaining.
2021-07-04Whitespace and brace fixes (#456)Avamander
* Brace style and whitespace fixes * Additional whitespace fixes
2021-07-02Float voltage to int (#444)Riku Isokoski
* Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
2021-07-02static_cast cleanupAvamander
2021-05-16Emit event on power-present toggle (#320)David Ventura
* 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-24Changed access modified indentationAvamander
2021-04-24Reformatted all the files according to clang-format styleAvamander
2021-04-16In order to stabilize the battery reading,Joaquim
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 bufferJoaquim
2021-04-05Fix wake up lock in twiJoaquim
optimize battery code
2021-04-04double tap wakeup error fixJoaquim
battery nonblocking read
2021-01-17Added more descriptive comments in doxygen format.panky-codes
2021-01-16Changed float to int in battery controller file.panky-codes
2021-01-16Changed std accumulate to use int instead of a float.panky-codes
2021-01-16Converted all the other float usage to int.panky-codes
2021-01-16Converted percent remaining calc to int.panky-codes
2021-01-14Adapted the accumulate function to return float.panky-codes
2021-01-14Implemented a circular buffer and added an average alg for batter remaining ↵panky-codes
percentage.
2020-11-16Include cleanup: componentsokaestne
2020-10-02Fixed all the includes that were broken due to the renamesAvamander