mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-04 03:11:03 +03:00
Fixed bit comparation to strin
This commit is contained in:
@ -24,12 +24,12 @@
|
||||
#include <MQUnifiedsensor.h>
|
||||
/************************Hardware Related Macros************************************/
|
||||
#define Board ("Arduino UNO")
|
||||
#define Pin (A3) //Analog input 3 of your arduino
|
||||
#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 (10) // For arduino UNO/MEGA/NANO
|
||||
|
||||
#define RatioMQ3CleanAir (60)
|
||||
/*****************************Globals***********************************************/
|
||||
MQUnifiedsensor MQ3(Board, Voltage_Resolution, ADC_Bit_Resolution, Pin, Type);
|
||||
/*****************************Globals***********************************************/
|
||||
|
Reference in New Issue
Block a user