mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-15 05:17:30 +03:00
Updated example
This commit is contained in:
parent
e07c4b7f71
commit
6ecc769676
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user