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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:e7fcfb26edc0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Mar 30 03:03:09 2020 +0000
@@ -0,0 +1,58 @@
+#include "mbed.h"
+int i;
+int x;
+
+DigitalOut LED(PA_5);
+
+
+int main() {
+ x = 1;
+
+ while(x == 1) {
+//Do
+ for (i=1; i<500; i++){
+ LED = 1; // LED is ON
+ wait(0.0019 ); // 250 msec
+ LED = 0; // LED is OFF
+ wait(0.0019); // 0.5 sec
+ }
+ // wait(1);
+ LED = 0;
+//Re
+ for (i=1; i<500; i++){
+ LED = 1; // LED is ON
+ wait(0.0017 ); // 250 msec
+ LED = 0; // LED is OFF
+ wait(0.0017); // 0.5 sec
+ }
+ // wait(1);
+//Mi
+ for (i=1; i<500; i++){
+ LED = 1; // LED is ON
+ wait(0.0015 ); // 250 msec
+ LED = 0; // LED is OFF
+ wait(0.0015); // 0.5 sec
+ }
+ // wait(1);
+
+//Fa
+ for (i=1; i<500; i++){
+ LED = 1; // LED is ON
+ wait(0.0014 ); // 250 msec
+ LED = 0; // LED is OFF
+ wait(0.0014); // 0.5 sec
+ }
+//Sol
+ for (i=1; i<500; i++){
+ LED = 1; // LED is ON
+ wait(0.0012 ); // 250 msec
+ LED = 0; // LED is OFF
+ wait(0.0012); // 0.5 sec
+ }
+
+ LED = 0;
+ LED = 0;
+ x = 0;
+ }
+
+}