rbaron
d215d5f4a7
Sets transmitting power to +8dB
2021-03-31 18:37:50 +02:00
rbaron
3c7180fefa
Adds run_counter to ble advertising packet
2021-03-28 10:44:33 +02:00
rbaron
37fd1173ec
Sets MAC address to a random static value
2021-03-26 17:18:38 +01:00
rbaron
6ec48b7188
Puts soil moisture reading into the BLE advertisement packet
2021-03-26 16:30:09 +01:00
rbaron
30162f4628
Cleans up logging
2021-03-26 13:45:28 +01:00
rbaron
c2e3723eb0
Adds temp and humidity values to the BLE advertisement packet
2021-03-26 10:49:28 +01:00
rbaron
81b33fbd8c
Handles SHT3C sensor
...
...And this is the first time I'm flashing the firmware into a real
b-parasite board!
2021-03-26 10:29:54 +01:00
rbaron
fb07a1244c
PWM start/stop in RTC callback.
...
I initially tried calling prst_pwm_init() in main(), and just using start/stop in
the callback, but that led to a weird behavior in the PWM output. It was set to
high after the end of the callback.
Callnig uninit/re-calling init() inside the RTC callback fixed, but more investigation
is required.
2021-03-14 15:03:33 +01:00
rbaron
05dcb9de84
Hard coded PWM with 500kHz frequency works
2021-03-14 14:30:32 +01:00
rbaron
20243a26a2
Extracted BLE to src/prst/ble.{c,h}
2021-03-14 11:06:45 +01:00
rbaron
a5c932def2
Extracts RTC stuff to src/rtc.{c,h}
2021-03-13 16:49:55 +01:00