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.
main.cpp
- Committer:
- bky
- Date:
- 2020-11-30
- Revision:
- 8:9f59ef177620
- Parent:
- 7:12eed49f95fc
- Child:
- 9:b7e8d0372f53
File content as of revision 8:9f59ef177620:
#include "mbed.h"
#include "input_driver.h"
#include "output_driver.h"
#include <time.h>
DigitalOut myled(LED1);
int main() {
//int flashTime = 0;
printf("starting\n");
while(1) {
printf("%f", getSensorStrength());
sendFloat((float)getSensorStrength());
if(getFlashDetected()) {
printf("flash as %f\n", clock());
}
wait(0.1);
}
}
