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:
- 0:61a0a5a3d231
diff -r 000000000000 -r 61a0a5a3d231 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun May 22 20:14:19 2022 +0000
@@ -0,0 +1,51 @@
+LED BLINK
+
+#include "mbed.h"
+DigitalOut myled(LED1);
+DigitalOut b(LED2);
+
+int main() {
+ while(1) {
+ myled = 1;
+ wait(0.2);
+ b=0;
+ wait(0.2);
+ myled = 0;
+ wait(0.2);
+ b=1;
+ wait(0.2);
+ }
+}
+
+#include "mbed.h"
+DigitalOut g(p5);
+int main() {
+ while(1) {
+ g = 1;
+ wait(0.2);
+ g = 0;
+ wait(0.2);
+ }
+}
+
+
+
+#include "mbed.h"
+DigitalOut myled(LED1);
+DigitalOut m(LED2);
+DigitalOut n(LED3);
+DigitalOut p(LED4);
+DigitalOut a(p5);
+DigitalOut b(p18);
+int main() {
+ while(1) {
+ myled=n=a=1;
+ wait(0.2);
+ myled=n=a= 0;
+ wait(0.2);
+ m=p=b=1;
+ wait(0.2);
+ m=p=b=0;
+ wait(0.2);
+ }
+}
\ No newline at end of file