mark9064
771008495e
Replace rounded div macro
2024-10-27 16:56:47 +01:00
mark9064
f032847ae1
Refactor into defined states
2024-10-27 16:56:47 +01:00
mark9064
97ba39988b
8hz idle
2024-10-27 16:56:47 +01:00
mark9064
ad3bf49c7b
Atomic HRS reads ( #1845 )
...
- Combine the reading of all `HRS3300` registers into one I2C read so data is not partial
- Downsizes both HRS and ALS to 16bit as the sensor does not generate larger than
16bit values in its current configuration
- Increasing the resolution by 1 bit doubles the sensor acquisition time,
since we are already at 10Hz we are never going to use a higher resolution
- The PPG algorithm buffers for ALS/HRS are already 16bit anyway
- Remove functions for setting gain / drive that are unused throughout the codebase
- Calculate constants with constexpr
2024-09-22 00:29:15 +02:00
mark9064
7ca0418c82
Refactor doNotGoToSleep to a wakelock counter
2024-09-21 22:45:57 +02:00
mark9064
c3d05901a0
Refactor SystemTask state handling for resilience
...
State transitions now happen immediately where possible
This simplifies state management in general,
and prevents bugs such as the chime issue from occurring in the first place
2024-09-21 21:08:07 +02:00
mark9064
b3756e45fa
Remove unused method declarations
2024-09-21 21:08:07 +02:00
mark9064
c8236afbef
Restrict debugging monitor to debug builds
2024-09-14 12:10:55 +02:00
mark9064
5040733a97
Clean unused DisplayApp messages
2024-09-14 12:10:14 +02:00
mark9064
fd019c7aad
Use DirtyValue for timer
2024-09-14 11:20:47 +02:00
mark9064
975bfc5420
Size optimise NRF SDK build
2024-09-14 11:19:34 +02:00
mark9064
4fddf93114
Advertise HR service
2024-08-18 12:00:13 +02:00
mark9064
53dc9dafe7
aod: simplify AOD disablement based on notification status
2024-08-05 20:32:43 +02:00
mark9064
a407902b06
aod: avoid spinning DisplayApp under high LVGL load
2024-08-05 20:32:43 +02:00
mark9064
3e8accde69
aod: run LVGL task handler until all work finished
2024-08-05 20:32:43 +02:00
mark9064
2bb611db8e
aod: constant frequency idle frames
2024-08-05 20:32:43 +02:00
mark9064
ef88e8165c
aod: porch control: 2Hz idle + 75Hz on
2024-08-05 20:32:43 +02:00
mark9064
da9ab4a7b4
aod: lower lcd voltage
2024-08-05 20:32:43 +02:00
mark9064
bf69e0dcc5
aod: fix flashlight brightness restore
2024-08-05 20:32:43 +02:00
mark9064
947c4f5067
aod: fix brightness getting stuck high
2024-08-05 20:32:43 +02:00
mark9064
3dca742b65
aod: PPI/RTC-based backlight brightness
2024-08-05 20:32:43 +02:00
mark9064
f8f8993fac
Batch display command arguments
2024-06-19 17:25:15 +02:00
mark9064
4930c0cab7
Include assert (fix sim)
2024-06-09 18:34:07 +02:00
mark9064
a449b272f7
Continuous time updates
2024-06-09 18:34:07 +02:00
mark9064
0dcfb2edb7
Fix erratum 58 workaround
2024-05-12 13:57:12 +02:00
mark9064
06c6935315
Include task header (Fixes sim)
2024-05-01 16:17:59 +02:00
mark9064
47c104643d
Move includes back
2024-05-01 16:17:59 +02:00
mark9064
7b1110187e
Apply display driver datasheet delays
2024-05-01 16:17:59 +02:00
mark9064
7e460d3c80
Use FreeRTOS delay instead of spinning the CPU
2024-05-01 16:17:59 +02:00
mark9064
7a9211587a
Rename to pre-transaction hook
2024-05-01 16:13:47 +02:00
mark9064
24e6a2f8ab
Avoid storing lambda
2024-05-01 16:13:47 +02:00
mark9064
9a7ba405e1
Refactor lambdas
2024-05-01 16:13:47 +02:00
mark9064
940cd3459f
Use functional abstraction for hooks
2024-05-01 16:13:47 +02:00
mark9064
869bec8f88
Refactor display WriteToRam
2024-05-01 16:13:47 +02:00
mark9064
ee925200c3
Remove task to notify
2024-05-01 16:13:47 +02:00
mark9064
079e676baf
SPI transaction hooks
2024-05-01 16:13:47 +02:00
mark9064
636af4d33d
Simplify ISR task wake checks
...
The macro checks the variable, so we don't need to check it ourselves
2024-03-12 19:09:01 +01:00
mark9064
70f6604878
Fix chimes
2024-03-12 19:08:17 +01:00
mark9064
93d7da1691
Fix OOB flash write when DFU interrupted
...
If a DFU is restarted, the write indices aren't reset causing the image to be written out of bounds. The CRC check prevents the faulty image from booting but LittleFS still gets nuked.
2024-02-14 19:12:08 +01:00
mark9064
4c274421d9
Remove GFX (and unused GFX dependencies)
2024-02-11 13:28:01 +01:00
mark9064
80607282dd
Update VS Code config to C++20
2023-12-10 12:02:42 +01:00
mark9064
54b4750c6f
Apply suggestion
2023-12-09 21:20:21 +01:00
mark9064
41a4813c8b
Fix calculation of number of app screens
2023-12-09 21:20:21 +01:00