Commit graph

22 commits

Author SHA1 Message Date
rbaron
3ef4464b65 SDK 2.7.0 -- implicit double promotion warnings fix
In [018dbcfd6679c273842084ce34c167295bc6f354](018dbcfd66),
Zephyr introduced the -Wdouble-promotion compiler flag.

We have some debugging logs that implicitly promote floats to double,
and it generates a lot of warnings. This commit fixes it.
2024-10-15 19:06:20 +02:00
Arne Seime
21dd14d7f3 Remove obsolete logging of soil voltage (always 0) 2024-06-04 16:55:30 +02:00
Arne Seime
20d98d02a0 Log photo adc value, not soil adc 2024-06-03 10:21:51 +02:00
Jan-Henrik Bruhn
905978e8c9
Only read positive voltages in adc.c
The ADC sometimes responds with negative voltages read on the ADC input due to noise. This can lead to very high illuminance readings at night (4095 << 4 to be exact due to two's complement :) ).
This commit caps ADC readings at 0.
2024-02-14 11:59:14 +01:00
rbaron
9fdd15626a Better error handling for SHTC3 reading 2023-07-15 11:07:35 +02:00
rbaron
cb40173b6b Remove debug info 2023-03-29 21:46:41 +02:00
rbaron
ebc26fcccd Cleanups 2023-03-29 21:42:41 +02:00
rbaron
e82c1b6bc1 Implements button handling
- DTS bindings
- Debouncing logic
- New `input` for testing and interrupt power profiling
2023-03-29 21:28:24 +02:00
rbaron
b34bc60a0a Actually use the devicetree calibration coeffs 2023-03-19 15:06:39 +01:00
rbaron
e24530b7c3 Fix devicetree-coeffs bug 2023-03-19 15:06:39 +01:00
rbaron
1983f31af9 Store calibration polynomial in devicetree
This will enable us to transparently use different calibration for
different board revisions. The 2.0.0 revision changes the sensing
circuitry and will need its own coeffs.

In this commit, both models are run in parallel for debugging.
2023-03-19 15:06:39 +01:00
rbaron
fe63fda2f1 Setup Kconfig for prstlib 2022-12-19 18:34:03 +01:00
Ole Odendahl
412188502b
Changed name of config value for prstlib default log level. 2022-12-18 16:55:32 +01:00
Ole Odendahl
03b45062c0
Fixing sensor logging millivolts. 2022-12-16 11:49:37 +01:00
Ole Odendahl
228b6f2f16
Making core log level configurable via Kconfig entry. 2022-12-16 11:21:27 +01:00
rbaron
cb6ed73691 Add battery percentage computation 2022-12-09 19:02:55 +01:00
rbaron
a8c7d3c1cd <zephyr/zephyr.h> -> <zephyr/kernel.h> in prstlib 2022-12-06 19:18:37 +01:00
rbaron
bc08c8284a Updates Zephyr imports to use the <zephyr/...> prefix
See https://docs.zephyrproject.org/latest/releases/release-notes-3.2.html#api-changes
2022-12-03 11:26:03 +01:00
rbaron
dc88916823 Add board 1.0.0, 1.1.0, 1.2.0 board revisions for nRF52840 variant 2022-12-03 10:46:48 +01:00
rbaron
dbaf44ecc1 Cleanup comments 2022-11-29 20:25:15 +01:00
rbaron
3b104cdf24 Implements BTHome v1 and v2 encodings for ble sample 2022-11-29 20:05:41 +01:00
rbaron
5ceccfafcc Extracts prstlib
Moves ble sample to code/nrf-connect/samples
2022-11-27 18:37:42 +01:00