Arduino: modular structure

This commit is contained in:
Mikkeli Matlock
2026-01-25 19:05:17 +09:00
parent f51b165503
commit 6d043b7439
3 changed files with 50 additions and 24 deletions

15
arduino/main/voltage.h Normal file
View File

@@ -0,0 +1,15 @@
#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