A library for the MQ2 sensor. Based on https://github.com/labay11 and http://sandboxelectronics.com/?p=165

Dependents:   mq2_example mq2_midtermproject ECE595_Group9_FinalProject mq2_example ... more

Revision:
3:ed294e830904
Parent:
1:323f72b59e99
Child:
5:8b7ba76a7a76
--- a/MQ2.h	Fri Oct 06 07:38:25 2017 +0000
+++ b/MQ2.h	Fri Oct 06 07:51:13 2017 +0000
@@ -45,7 +45,7 @@
     float MQGetGasPercentage(float rs_ro_ratio, GasType gas_id);
     int MQGetPercentage(float rs_ro_ratio, float *pcurve);
     float MQCalibration();
-    float MQResistanceCalculation(int raw_adc);
+    float MQResistanceCalculation(float raw_adc);
     float Ro;
 };