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: mbed
Fork of Seeed_Grove_UV_Sensor_Example by
Diff: main.cpp
- Revision:
- 0:26a3a6edbb11
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Sep 05 03:00:54 2014 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +AnalogIn sensorUV(A0); + +int main() { + float value; + while (true) { + value = sensorUV; + printf("\rUV Value = %3.2f%%",value*100); + wait(.1); + } +}