diff options
Diffstat (limited to 'src/Components/Battery/BatteryController.h')
| -rw-r--r-- | src/Components/Battery/BatteryController.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Components/Battery/BatteryController.h b/src/Components/Battery/BatteryController.h index 5c631dc..f07648a 100644 --- a/src/Components/Battery/BatteryController.h +++ b/src/Components/Battery/BatteryController.h @@ -14,6 +14,9 @@ namespace Pinetime { bool IsPowerPresent() const { return isPowerPresent; } private: + static constexpr uint32_t chargingPin = 12; + static constexpr uint32_t powerPresentPin = 19; + static constexpr nrf_saadc_input_t batteryVoltageAdcInput = NRF_SAADC_INPUT_AIN7; static void SaadcEventHandler(nrfx_saadc_evt_t const * p_event); float percentRemaining = 0.0f; float voltage = 0.0f; |
