rbaron
d2daefaf46
Updates ambient brightness estimation code
...
Also renames the `lux` field from `photo_read_t` to the more generic `brightness`.
2021-09-22 22:38:30 +02:00
chentadot
dcd0fc4ae1
Calculate photoresistor and some other fixes ( #3 )
...
prst_adc_photo_read() now calculates the photo resistor and return it as the lux level.
Added debug logging and fixed some syntax errors.
2021-09-22 22:38:30 +02:00
chentadot
c9b05859e4
First draft for Photoresistor
...
the code now should setup and use the photoresistor and read it's value by the adc.
the returned value is 0 just as a place holder until the correct values are measured.
2021-09-22 22:38:30 +02:00
rbaron
9057d67c0c
Clean up unused code and done TODO
2021-04-10 18:05:44 +02:00
rbaron
463fdb5ef4
Corrects the raw ADC soil mesasure given the current input voltage
2021-03-31 20:12:47 +02:00
rbaron
d215d5f4a7
Sets transmitting power to +8dB
2021-03-31 18:37:50 +02:00
rbaron
6ec48b7188
Puts soil moisture reading into the BLE advertisement packet
2021-03-26 16:30:09 +01:00
rbaron
25772def7e
ADC works for measuring the battery voltage
2021-03-17 19:08:17 +01:00