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 1:41cd9c66fd46, committed 2010-08-02
- Comitter:
- simon
- Date:
- Mon Aug 02 17:59:03 2010 +0000
- Parent:
- 0:f7582ef705bb
- Commit message:
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jul 29 22:26:32 2010 +0000
+++ b/main.cpp Mon Aug 02 17:59:03 2010 +0000
@@ -2,14 +2,11 @@
DigitalOut myled(LED1);
AnalogIn x(p20);
-AnalogIn y(p19);
int main() {
while (1) {
- printf("%f, %f, hello world, %f\n", x.read(), y.read(), i);
- myled = 1;
+ printf("%f\n", x.read());
+ myled = !myled;
wait(0.01);
- myled = 0;
- wait(0.03);
}
}