Files
smart-serow/arduino/main/voltage.h
2026-01-25 19:05:17 +09:00

16 lines
268 B
C

#ifndef VOLTAGE_H
#define VOLTAGE_H
#include <Arduino.h>
// Initialize voltage monitoring (call in setup)
void voltage_init();
// Read battery voltage, returns volts (e.g., 12.5)
float voltage_read();
// Read raw ADC value (0-1023)
int voltage_read_raw();
#endif