mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-15 05:17:30 +03:00
Fixed merge conflict
This commit is contained in:
commit
3261318577
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ131.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ131.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
// Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ131.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ131.calibrate();
|
float R0 = MQ131.calibrate();
|
||||||
MQ131.setR0(R0):
|
MQ131.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,6 +41,10 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ135.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ135.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ135.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ2.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ2.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ2.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ2.calibrate();
|
float R0 = MQ2.calibrate();
|
||||||
MQ2.setR0(R0):
|
MQ2.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ3.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ3.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ3.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ3.calibrate();
|
float R0 = MQ3.calibrate();
|
||||||
MQ3.setR0(R0):
|
MQ3.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ303.update();
|
MQ303.update();
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ303.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ303.calibrate();
|
float R0 = MQ303.calibrate();
|
||||||
MQ303.setR0(R0):
|
MQ303.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ309.update();
|
MQ309.update();
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ309.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ309.calibrate();
|
float R0 = MQ309.calibrate();
|
||||||
MQ309.setR0(R0):
|
MQ309.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ4.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ4.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ4.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ4.calibrate();
|
float R0 = MQ4.calibrate();
|
||||||
MQ4.setR0(R0):
|
MQ4.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -42,12 +42,16 @@ void setup() {
|
|||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
MQ5.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ5.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ5.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ5.calibrate();
|
float R0 = MQ5.calibrate();
|
||||||
MQ5.setR0(R0):
|
MQ5.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,6 +41,10 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ6.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ6.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ6.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
|
@ -44,12 +44,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ7.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ7.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ7.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ7.calibrate();
|
float R0 = MQ7.calibrate();
|
||||||
MQ7.setR0(R0):
|
MQ7.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ8.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ8.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ8.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ8.calibrate();
|
float R0 = MQ8.calibrate();
|
||||||
MQ8.setR0(R0):
|
MQ8.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -41,12 +41,16 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
MQ9.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
MQ9.update(); // Update data, the arduino will be read the voltaje in the analog pin
|
||||||
|
/*
|
||||||
|
//Si el valor de RL es diferente a 10K por favor asigna tu valor de RL con el siguiente metodo:
|
||||||
|
MQ9.setRL(10);
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
//Rutina de calibracion - Uncomment if you need (setup too and header)
|
||||||
if(calibration_button)
|
if(calibration_button)
|
||||||
{
|
{
|
||||||
float R0 = MQ9.calibrate();
|
float R0 = MQ9.calibrate();
|
||||||
MQ9.setR0(R0):
|
MQ9.setR0(R0);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/***************************** MQReadSensor ****************************************
|
/***************************** MQReadSensor ****************************************
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=MQUnifiedsensor
|
name=MQUnifiedsensor
|
||||||
version=1.0.2
|
version=1.0.4
|
||||||
author= Miguel Califa <miguelangel5612@gmail.com>, Yersson Carrillo <miguelangel5612@gmail.com>, Ghiordy Contreras <miguelangel5612@gmail.com>
|
author= Miguel Califa <miguelangel5612@gmail.com>, Yersson Carrillo <miguelangel5612@gmail.com>, Ghiordy Contreras <miguelangel5612@gmail.com>
|
||||||
maintainer= Miguel Califa <miguelangel5612@gmail.com>
|
maintainer= Miguel Califa <miguelangel5612@gmail.com>
|
||||||
sentence= This library allows you to read the MQ sensors very easily.
|
sentence= This library allows you to read the MQ sensors very easily.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user