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.
Diff: main.cpp
- Revision:
- 8:9f59ef177620
- Parent:
- 7:12eed49f95fc
- Child:
- 9:b7e8d0372f53
--- a/main.cpp Mon Nov 30 22:34:25 2020 +0000
+++ b/main.cpp Mon Nov 30 23:42:26 2020 +0000
@@ -6,11 +6,14 @@
DigitalOut myled(LED1);
int main() {
- int flashTime = 0;
-
+ //int flashTime = 0;
+ printf("starting\n");
while(1) {
+ printf("%f", getSensorStrength());
+ sendFloat((float)getSensorStrength());
if(getFlashDetected()) {
- printf("flash as %d", clock());
+ printf("flash as %f\n", clock());
}
+ wait(0.1);
}
}
