aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/battery
Commit message (Collapse)AuthorAgeFilesLines
* Detect full charge and improve watchface displayRiku Isokoski2021-09-032-3/+16
|
* Remove floating point calculationRiku Isokoski2021-08-011-2/+2
|
* Increase ADC precisionRiku Isokoski2021-07-271-4/+4
|
* Merge branch 'develop' into fix_adcRiku Isokoski2021-07-132-13/+13
|\
| * Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-112-17/+14
| | | | | | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* | Fix misconfigured ADC and remove now unnecessary filteringRiku Isokoski2021-07-122-48/+4
|/
* Whitespace and brace fixes (#456)Avamander2021-07-041-1/+2
| | | | | * Brace style and whitespace fixes * Additional whitespace fixes
* Float voltage to int (#444)Riku Isokoski2021-07-022-8/+12
| | | | * Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
* static_cast cleanupAvamander2021-07-021-1/+1
|
* Emit event on power-present toggle (#320)David Ventura2021-05-161-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
* Changed access modified indentationAvamander2021-04-241-4/+4
|
* Reformatted all the files according to clang-format styleAvamander2021-04-242-82/+85
|
* In order to stabilize the battery reading,Joaquim2021-04-162-8/+22
| | | | | | I modified the process to make 5 consecutive readings, as the process is asynchronous, there is no interference in the main process.
* restore battery bufferJoaquim2021-04-082-10/+40
|
* Fix wake up lock in twiJoaquim2021-04-052-29/+31
| | | | optimize battery code
* double tap wakeup error fixJoaquim2021-04-042-54/+67
| | | | battery nonblocking read
* Added more descriptive comments in doxygen format.panky-codes2021-01-171-9/+15
|
* Changed float to int in battery controller file.panky-codes2021-01-161-2/+2
|
* Changed std accumulate to use int instead of a float.panky-codes2021-01-161-1/+1
|
* Converted all the other float usage to int.panky-codes2021-01-161-1/+1
|
* Converted percent remaining calc to int.panky-codes2021-01-162-6/+6
|
* Adapted the accumulate function to return float.panky-codes2021-01-141-1/+2
|
* Implemented a circular buffer and added an average alg for batter remaining ↵panky-codes2021-01-142-3/+33
| | | | percentage.
* Include cleanup: componentsokaestne2020-11-162-3/+2
|
* Fixed all the includes that were broken due to the renamesAvamander2020-10-022-0/+75