Commit graph

11 commits

Author SHA1 Message Date
MickiusMousius
e41c11d0a1 fix bad indexing of lookup table 2023-12-18 10:30:50 +10:30
MickiusMousius
73646cbfc7 fix: Use more efficient integer operations, ensure return values don'r get out of sync with the lookup table. 2023-12-13 12:06:39 +10:30
MickiusMousius
d86d289d76
Fix: Correct incorrect indexing of the lookup table 2023-12-12 16:18:27 +10:30
MickiusMousius
86885c19bd Address feedback: Perform interpolation in code, proper use of struct & const 2023-12-12 12:42:43 +10:30
MickiusMousius
f4c9b12d78 fix: Use a formula table to better approximate remaining battery capacity 2023-12-11 17:30:53 +10:30
Hooky
2c50cff891
feat(kscan): Add charlieplex keyscan driver
* Supports matrixes with and without additional interrupt pin use.

Co-authored-by: Peter Johanson <peter@peterjohanson.com>
2023-12-09 17:10:05 -05:00
zhiayang
9b3d2cb99f
fix(driver): Fix broken compilation for MAX7318 driver 2023-09-28 12:19:14 -04:00
zhiayang
8abc449cc2
feat(drivers): add driver for MAX17048 fuel gauge
Add driver for MAX17048 fuel gauge for battery reporting.
2023-09-25 21:04:03 -04:00
Peter Johanson
0ca7f69b6d refactor: Promote debounce to exposed mod lib.
* Promote previously local debounce code from kscan drivers to exposed
  module lib, for use with other drivers as needed.
* Refactor existing kscan driver to new "public" API.
2023-09-16 11:52:40 -07:00
Peter Johanson
c28ef1b61e refactor(drivers): Use proper init stage/priority.
* Avoid APPLICATION stage and use the proper earlier stage for
  kscan drivers.
2023-09-16 11:52:40 -07:00
Peter Johanson
690bc1bb44 refactor: Move drivers into properly module.
* Align our driver module layout to properly match Zephyr conventions,
  allowing proper CMake setup to amend the library for each type of driver.
2023-09-16 11:52:40 -07:00