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
Revision 0:26a3a6edbb11, committed 2014-09-05
- Comitter:
- mbedAustin
- Date:
- Fri Sep 05 03:00:54 2014 +0000
- Commit message:
- Seeed Grove UV Sensor example. Very simple initial commit. Takes in voltage from ADC and reports it to the user via terminal as % of total voltage. ~10% = indoors
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /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);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Sep 05 03:00:54 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013 \ No newline at end of file

Grove UV Sensor