1
0

Refactor sensor data handling: update sensor read functions to return structured data and improve timer management in main loop

This commit is contained in:
Jose
2025-05-04 23:23:37 +02:00
parent e57222f46d
commit 5d1b2feeab
12 changed files with 156 additions and 78 deletions

View File

@@ -6,5 +6,10 @@
#define RL 10000.0 // 10kΩ
#define RO 10000.0 // Resistencia del aire limpio
struct MQ7Data_t
{
float co;
};
void MQ7_Init();
void MQ7_Read(float &sensorValue);
MQ7Data_t MQ7_Read();