Compare commits

..

4 Commits

Author SHA1 Message Date
5a911a2149 Update library.properties 2019-08-16 09:58:05 -05:00
620b7c0cf0 Merge pull request #8 from miguel5612/develop
Removed liquid crystal from paragraph in lib.prop
2019-08-16 09:57:15 -05:00
bff0304e3f Merge pull request #7 from per1234/remove-duplicate-architectures-field
Remove incorrect architectures field from library.properties
2019-08-16 09:56:44 -05:00
9a43163cae Remove incorrect architectures field from library.properties
Previously, there were two architectures fields. The first correctly identified the library as being for all architectures. The second incorrectly identified the library as being for avr architecture only. The second field overrides the value of the first field. For this reason, I have removed the incorrect second architectures field.
2019-08-15 21:15:27 -07:00
15 changed files with 11 additions and 70 deletions

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -41,10 +41,6 @@ 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)

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -42,15 +42,11 @@ 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 ****************************************

View File

@ -42,16 +42,12 @@ 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 ****************************************

View File

@ -41,10 +41,6 @@ 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)

View File

@ -44,16 +44,12 @@ 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 ****************************************

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -41,16 +41,12 @@ 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 ****************************************

View File

@ -1,11 +1,10 @@
name=MQUnifiedsensor name=MQUnifiedsensor
version=1.0.4 version=1.0.0
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.
paragraph= This library allows an Arduino/Genuino board to read MQ Sensors (AIr quality meter) references: MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ303A, MQ309A. paragraph= This library allows an Arduino/Genuino board to read MQ Sensors (AIr quality meter) references: MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ303A, MQ309A.
category= Sensors category= Sensors
url=https://github.com/miguel5612/MQSensorsLib url=https://github.com/miguel5612/MQSensorsLib
architectures=*
architectures=avr architectures=avr
license=MIT license=MIT

View File

@ -562,14 +562,6 @@ void MQUnifiedsensor::setR0(double R0) {
double MQUnifiedsensor::getR0() { double MQUnifiedsensor::getR0() {
return _R0; return _R0;
} }
void MQUnifiedsensor::setRL(double RL) {
this->_RLValue = RL;
}
double MQUnifiedsensor::getRL() {
return _RLValue;
}
void MQUnifiedsensor::setDefaultGas() void MQUnifiedsensor::setDefaultGas()
{ {
if(_type == 2) if(_type == 2)

View File

@ -255,7 +255,6 @@ class MQUnifiedsensor
void inicializar(); void inicializar();
void update(); void update();
void setR0(double R0 = 10); void setR0(double R0 = 10);
void setRL(double RL = 10);
void setVoltResolution(float voltaje = 5); void setVoltResolution(float voltaje = 5);
void setSensorCharacteristics(String nameLectureReqeuired = "", bool print = false); void setSensorCharacteristics(String nameLectureReqeuired = "", bool print = false);
void setDefaultGas(); void setDefaultGas();
@ -266,7 +265,6 @@ class MQUnifiedsensor
//get function for info //get function for info
double getR0(); double getR0();
double getRL();
double getVoltage(int read = true); double getVoltage(int read = true);
double stringToDouble(String & str); double stringToDouble(String & str);
String getnameLecture(); String getnameLecture();