|
BresserWeatherSensorLW
Bresser 868 MHz Weather Sensor Radio Receiver based on ESP32/RP2040 and SX1262/SX1276/LR1121 - sends data to a LoRaWAN Network
|
ADC wrapper/convenience functions. More...
#include <Arduino.h>#include "../../BresserWeatherSensorLWCfg.h"

Go to the source code of this file.
Functions | |
| uint16_t | getVoltage (uint8_t pin=PIN_ADC_IN, uint8_t samples=UBATT_SAMPLES, float divider=UBATT_DIV) |
| Get supply / battery voltage. | |
| uint16_t | getBatteryVoltage (void) |
| Get battery voltage. | |
| uint16_t | getSupplyVoltage (void) |
| Get supply voltage. | |
ADC wrapper/convenience functions.
| uint16_t getBatteryVoltage | ( | void | ) |
Get battery voltage.
Returns the battery voltage or zero if not available (board specific)
| uint16_t getSupplyVoltage | ( | void | ) |
Get supply voltage.
Returns the battery voltage or zero if not available (board specific)
| uint16_t getVoltage | ( | uint8_t | pin = PIN_ADC_IN, |
| uint8_t | samples = UBATT_SAMPLES, | ||
| float | divider = UBATT_DIV ) |
Get supply / battery voltage.
Returns a voltage measurement with oversampling and divider