1
0

In the current state all the timings work flawlessly but MQ is still 0.0f and GPS is not read

This commit is contained in:
Jose
2025-05-06 22:56:41 +02:00
parent fa1b457004
commit b2c7b7677b
6 changed files with 116 additions and 60 deletions

View File

@@ -5,6 +5,13 @@
#define ADC_RES 1023.0
#define RL 10000.0 // 10kΩ
#define RO 10000.0 // Resistencia del aire limpio
#define RELAY_CONTROL_PIN 2
#define MAX_SAMPLES 90
enum MQ7State_t
{
HEATING, SAMPLING
};
struct MQ7Data_t
{
@@ -12,4 +19,5 @@ struct MQ7Data_t
};
void MQ7_Init();
bool MQ7_Update();
MQ7Data_t MQ7_Read();