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.
Revision 0:e7c1cda5f649, committed 2012-10-11
- Comitter:
- AkiraK
- Date:
- Thu Oct 11 15:47:23 2012 +0000
- Commit message:
- illuminance.;
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 Thu Oct 11 15:47:23 2012 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+
+AnalogIn illu(p20);
+
+int main() {
+ while(true) {
+ float lx = illu * 3.3 / 3 * 1000;
+ printf("%5.2f\r\n", lx);
+ wait(1.0);
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Oct 11 15:47:23 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file