Jean-François Milants
|
e21f6a7f41
|
Notify battery level every 10 minutes when connected to a BLE host.
Refactor battery percent : only use uint8_t to store the battery % remaining.
|
2021-07-11 16:55:06 +02:00 |
|
Avamander
|
ab59b9b830
|
Whitespace and brace fixes (#456)
* Brace style and whitespace fixes
* Additional whitespace fixes
|
2021-07-04 20:06:50 +02:00 |
|
Riku Isokoski
|
38f40034b0
|
Float voltage to int (#444)
* Change voltage float to millivolt integer
* Explain the ADC to milliVolts conversion
|
2021-07-02 17:30:32 +02:00 |
|
Avamander
|
bdb5965f1a
|
static_cast cleanup
|
2021-07-02 16:27:41 +02:00 |
|
David Ventura
|
9342d62a44
|
Emit event on power-present toggle (#320)
* 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-05-16 21:13:22 +02:00 |
|
Avamander
|
6989854519
|
Changed access modified indentation
|
2021-04-24 12:00:45 +03:00 |
|
Avamander
|
40d45d923b
|
Reformatted all the files according to clang-format style
|
2021-04-24 11:39:53 +03:00 |
|
Joaquim
|
3c413bdd52
|
In order to stabilize the battery reading,
I modified the process to make 5 consecutive readings,
as the process is asynchronous,
there is no interference in the main process.
|
2021-04-16 16:15:38 +01:00 |
|
Joaquim
|
3cf4df905a
|
restore battery buffer
|
2021-04-08 16:15:57 +01:00 |
|
Joaquim
|
365e68e6cc
|
Fix wake up lock in twi
optimize battery code
|
2021-04-05 15:22:10 +01:00 |
|
Joaquim
|
bb7531e208
|
double tap wakeup error fix
battery nonblocking read
|
2021-04-04 13:51:22 +01:00 |
|
panky-codes
|
b31c0e7e45
|
Added more descriptive comments in doxygen format.
|
2021-01-17 11:06:24 +01:00 |
|
panky-codes
|
952021cdb6
|
Changed float to int in battery controller file.
|
2021-01-16 21:31:58 +01:00 |
|
panky-codes
|
8697a06642
|
Changed std accumulate to use int instead of a float.
|
2021-01-16 20:46:01 +01:00 |
|
panky-codes
|
271ca78be5
|
Converted all the other float usage to int.
|
2021-01-16 20:18:55 +01:00 |
|
panky-codes
|
e2d1f81915
|
Converted percent remaining calc to int.
|
2021-01-16 19:51:32 +01:00 |
|
panky-codes
|
dece6c6bc8
|
Adapted the accumulate function to return float.
|
2021-01-14 22:11:17 +01:00 |
|
panky-codes
|
b8f943e73c
|
Implemented a circular buffer and added an average alg for batter remaining percentage.
|
2021-01-14 21:22:36 +01:00 |
|
okaestne
|
1516573df4
|
Include cleanup: components
|
2020-11-16 01:35:45 +01:00 |
|
Avamander
|
6c86d1d9d7
|
Fixed all the includes that were broken due to the renames
|
2020-10-02 22:16:48 +03:00 |
|