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:
- 1:17420a732fe8
- Parent:
- 0:1c2d9c93c045
- Child:
- 2:c0afe99e4314
diff -r 1c2d9c93c045 -r 17420a732fe8 main.cpp
--- a/main.cpp Tue Nov 21 15:27:07 2017 +0000
+++ b/main.cpp Tue Nov 21 15:33:44 2017 +0000
@@ -1,12 +1,17 @@
#include "mbed.h"
+#include "const.h"
DigitalOut myled(LED1);
+DigitalOut myled1(LED2);
-int main() {
+int main()
+{
while(1) {
myled = 1;
- wait(0.2);
+ myled1 = 0;
+ wait(TEMPO1);
myled = 0;
- wait(0.2);
+ myled = 1;
+ wait(TEMPO2);
}
}