Grove Air quality sensor program
Dependencies: Grove_Air_Quality_Sensor_Library mbed
Connection
VDD → 3.3V or 5V (supply voltage)
GND → GND
SIG → p15 (mbed)
NC → Non connection
Revision 2:225383599b95, committed 2019-11-06
- Comitter:
- HeptaSatTraining2019
- Date:
- Wed Nov 06 18:32:23 2019 +0000
- Parent:
- 1:888328032581
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 888328032581 -r 225383599b95 main.cpp --- a/main.cpp Fri Sep 05 19:17:20 2014 +0000 +++ b/main.cpp Wed Nov 06 18:32:23 2019 +0000 @@ -1,9 +1,8 @@ - #include"mbed.h" #include"Air_Quality.h" AirQuality airqualitysensor; int current_quality = -1; -PinName analogPin = A0; +PinName analogPin = p15; // Interrupt Handler void AirQualityInterrupt()