mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-06 12:21:03 +03:00
Updated and fixed typo examples
This commit is contained in:
@ -50,7 +50,7 @@ We present a unified library for MQ sensors, this library allows to read MQ sign
|
||||
MQUnifiedsensor MQ4(Board, Voltage_Resolution, ADC_Bit_Resolution, Pin, Type);
|
||||
// Setup
|
||||
MQ4.setRegressionMethod("Exponential"); //_PPM = a*ratio^b
|
||||
MQ4.setA(1012.7); MQ4.setB(-2.786); // Configurate the ecuation values to get CH4 concentration
|
||||
MQ4.setA(1012.7); MQ4.setB(-2.786); // Configure the equation to to calculate CH4 concentration
|
||||
MQ4.setR0(3.86018237); // Value getted on calibration
|
||||
// Loop
|
||||
MQ4.init();
|
||||
|
Reference in New Issue
Block a user