diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-03-20 11:08:35 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-03-20 11:08:35 +1100 |
| commit | 4cd3c187f92d8f5b73c2c985da308280c18465cf (patch) | |
| tree | f4c9dd27fa3c760aab4d5b29bb442588e2ad643f /src/drivers/include/nvs.hpp | |
| parent | edd5eecc14bd5f7f25446555459836dd10f2af33 (diff) | |
| download | tangara-fw-4cd3c187f92d8f5b73c2c985da308280c18465cf.tar.gz | |
Add exact display size to nvs, since it can vary
Diffstat (limited to 'src/drivers/include/nvs.hpp')
| -rw-r--r-- | src/drivers/include/nvs.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/drivers/include/nvs.hpp b/src/drivers/include/nvs.hpp index 5bd825e5..f288f8e2 100644 --- a/src/drivers/include/nvs.hpp +++ b/src/drivers/include/nvs.hpp @@ -71,6 +71,11 @@ class NvsStorage { auto LockPolarity() -> bool; auto LockPolarity(bool) -> void; + auto DisplaySize() + -> std::pair<std::optional<uint16_t>, std::optional<uint16_t>>; + auto DisplaySize(std::pair<std::optional<uint16_t>, std::optional<uint16_t>>) + -> void; + auto PreferredBluetoothDevice() -> std::optional<bluetooth::MacAndName>; auto PreferredBluetoothDevice(std::optional<bluetooth::MacAndName>) -> void; @@ -120,6 +125,9 @@ class NvsStorage { nvs_handle_t handle_; Setting<uint8_t> lock_polarity_; + Setting<uint16_t> display_cols_; + Setting<uint16_t> display_rows_; + Setting<uint8_t> brightness_; Setting<uint8_t> sensitivity_; Setting<uint16_t> amp_max_vol_; |
