conurb / low_energy_sensor

ATtiny85 with a BME280 sensor in I2C (mimics an Oregon Scientific sensor)
GNU General Public License v3.0
9 stars 6 forks source link

mcu_read_vcc() #2

Closed sperate closed 4 years ago

sperate commented 5 years ago

There is something missing in the code of this function and the vcc value is updated once at the program start and never again during the execution. I've temporarly solved the issue with an analogRead(A0) at the beginning of the procedure but that's not very nice. Could you look at that ?