zmk/app/boards/arm/corneish_zen
Joel Spadin 8a8e090ff6 refactor(battery)!: Deduplicate battery code
Changed the zmk,battery-voltage-divider and zmk,battery-nrf-vddh drivers
to support only SENSOR_CHAN_VOLTAGE, and changed the default battery
fetch mode to ZMK_BATTERY_REPORTING_FETCH_MODE_LITHIUM_VOLTAGE. This
allowed for removing the copy of lithium_ion_mv_to_pct() from the
driver code, leaving only the version in battery.c.

Custom boards/shields that use a fuel gauge driver instead of a voltage
sensor, will need the following added to their Kconfig.defconfig:

    choice ZMK_BATTERY_REPORTING_FETCH_MODE
        default ZMK_BATTERY_REPORTING_FETCH_MODE_STATE_OF_CHARGE
    endchoice

Alternatively, add the following to the _defconfig file:

    ZMK_BATTERY_REPORTING_FETCH_MODE_STATE_OF_CHARGE=y
2024-04-05 21:47:13 -05:00
..
widgets fix(display): Proper initial display of battery status 2024-02-19 19:15:19 -05:00
board.cmake feat(boards): Make west flash work with new UF2 runner. 2024-02-09 14:32:46 -08:00
CMakeLists.txt feat(boards): Add Corne-ish Zen v1 2023-04-25 23:57:16 -07:00
corneish_zen.conf fix(boards): Add Zen .conf file for setup script 2022-12-16 17:41:39 -06:00
corneish_zen.dtsi refactor: use zmk,matrix-transform instead of zmk,matrix_transform 2024-01-23 23:02:35 -06:00
corneish_zen.keymap fix(keymap): Replace some keypad keycodes 2024-03-18 13:19:27 -04:00
corneish_zen.yaml feat(boards): Add Corne-ish zen v2 2022-12-16 10:57:25 -06:00
corneish_zen_v1.zmk.yml feat(boards): Add Corne-ish Zen v1 2023-04-25 23:57:16 -07:00
corneish_zen_v1_left.dts fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
corneish_zen_v1_left_defconfig fix(display): Tweaks to memory Kconfig settings. 2024-02-09 14:32:46 -08:00
corneish_zen_v1_right.dts fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
corneish_zen_v1_right_defconfig fix(display): Tweaks to memory Kconfig settings. 2024-02-09 14:32:46 -08:00
corneish_zen_v2.yaml feat(boards): Add Corne-ish zen v2 2022-12-16 10:57:25 -06:00
corneish_zen_v2.zmk.yml feat(boards): Add Corne-ish zen v2 2022-12-16 10:57:25 -06:00
corneish_zen_v2_left.dts fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
corneish_zen_v2_left_defconfig fix(display): Tweaks to memory Kconfig settings. 2024-02-09 14:32:46 -08:00
corneish_zen_v2_right.dts fix: Add wakeup-source; to kscan nodes for ZMK_SLEEP. 2024-03-29 12:31:43 -07:00
corneish_zen_v2_right_defconfig fix(display): Tweaks to memory Kconfig settings. 2024-02-09 14:32:46 -08:00
custom_status_screen.c fix(boards): Fix Zen logo alignment 2023-04-14 14:39:54 -07:00
custom_status_screen.h feat(boards): Add Corne-ish zen v2 2022-12-16 10:57:25 -06:00
Kconfig feat(boards): Add Corne-ish Zen v1 2023-04-25 23:57:16 -07:00
Kconfig.board feat(boards): Add Corne-ish Zen v1 2023-04-25 23:57:16 -07:00
Kconfig.defconfig refactor(battery)!: Deduplicate battery code 2024-04-05 21:47:13 -05:00