issues
search
InfiniTimeOrg
/
InfiniTime
Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k
stars
903
forks
source link
Atomic HRS reads
#1845
Open
mark9064
opened
10 months ago
mark9064
commented
10 months ago
Combines 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
Removes functions for setting gain / drive that are unused throughout the codebase
github-actions[bot]
commented
10 months ago
Build size and comparison to main:
Section
Size
Difference
text
395908B
-48B
data
996B
0B
bss
63420B
0B