mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-02 02:11:04 +03:00
Updated examples, added new method explanation
This commit is contained in:
@ -41,12 +41,16 @@ void setup() {
|
||||
|
||||
void loop() {
|
||||
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)
|
||||
if(calibration_button)
|
||||
{
|
||||
float R0 = MQ2.calibrate();
|
||||
MQ2.setR0(R0):
|
||||
MQ2.setR0(R0);
|
||||
}
|
||||
*/
|
||||
/***************************** MQReadSensor ****************************************
|
||||
|
Reference in New Issue
Block a user