From 6ecc76967627e7d21ddf9a33e078395bab91ad6e Mon Sep 17 00:00:00 2001 From: miguel5612 Date: Sat, 4 Apr 2020 09:52:56 -0500 Subject: [PATCH] Updated example --- examples/ESP32/esp32.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ESP32/esp32.ino b/examples/ESP32/esp32.ino index f673c12..527717b 100644 --- a/examples/ESP32/esp32.ino +++ b/examples/ESP32/esp32.ino @@ -27,8 +27,8 @@ #define Pin (A0) //Analog input 3 of your arduino /***********************Software Related Macros************************************/ #define Type ("MQ-3") //MQ3 -#define Voltage_Resolution (3.3) // 3V3 <- IMPORTANT -#define ADC_Bit_Resolution (12) // ESP-32 +#define Voltage_Resolution (3.3) // 3V3 <- IMPORTANT. Source: https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/ +#define ADC_Bit_Resolution (12) // ESP-32 bit resolution. Source: https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/ #define RatioMQ3CleanAir (60) /*****************************Globals***********************************************/ MQUnifiedsensor MQ3(Board, Voltage_Resolution, ADC_Bit_Resolution, Pin, Type);