10 lines
218 B
C++
10 lines
218 B
C++
#include <Arduino.h>
|
|
|
|
#define MQ7_PIN 34
|
|
#define VCC 5.0
|
|
#define ADC_RES 1023.0
|
|
#define RL 10000.0 // 10kΩ
|
|
#define RO 10000.0 // Resistencia del aire limpio
|
|
|
|
void MQ7_Init();
|
|
void MQ7_Read(float &sensorValue); |