Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MQ7.h
00001 /*************************************************** 00002 This is a library for MQ7 gas sensor 00003 00004 Written by Nerea Gómez. 00005 00006 ****************************************************/ 00007 00008 #ifndef MBED_MQ7_H 00009 #define MBED_MQ7_H 00010 00011 00012 #include "mbed.h" 00013 00014 class MQ7 { 00015 public: 00016 MQ7(PinName pinA, PinName pinD); 00017 int get_CO_value(); 00018 00019 private: 00020 AnalogIn _pinA; 00021 DigitalIn _pinD; 00022 00023 }; 00024 00025 #endif 00026
Generated on Mon Aug 1 2022 11:59:42 by
1.7.2