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.
Dependencies: Grove_Air_Quality_Sensor_Library mbed
main.cpp
- Committer:
- mbedAustin
- Date:
- 2014-09-05
- Revision:
- 0:2dbce8e35862
- Child:
- 1:888328032581
File content as of revision 0:2dbce8e35862:
#include "mbed.h"
AnalogIn sensor(A0);
int main() {
float sensorValue;
while (true) {
sensorValue = sensor.read();
printf("\r Air Quality score = %3.2f",100 - (sensorValue*100));
wait(5);
}
}