This is a library for the MQ9 gas sensor module.
MQ9 Class Reference
Class for the MQ9 sensor. More...
#include <MQ9.h>
Public Member Functions | |
MQ9 (PinName const &p) | |
Construct the sensor object and setup the sensor pins. | |
int | read () |
Update the gas concentrations from the sensor. | |
float | getLPG_ppm () |
Get concentration of LPG Returns the concentration of LPG as a floating number. | |
float | getCO_ppm () |
Get concentration of CO, Returns the concentration of CO as a floating number. | |
float | getMethane_ppm () |
Get concentration of Methane Returns the concentration of Methane as a floating number. |
Detailed Description
Class for the MQ9 sensor.
This library is a modified version of the MQ2 library for Arduino Example:
Definition at line 14 of file MQ9.h.
Constructor & Destructor Documentation
MQ9 | ( | PinName const & | p ) |
Member Function Documentation
float getCO_ppm | ( | ) |
float getLPG_ppm | ( | ) |
float getMethane_ppm | ( | ) |
Generated on Thu Jul 14 2022 10:11:07 by 1.7.2