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:cc3a5266b37f
diff -r 000000000000 -r cc3a5266b37f main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Dec 11 15:56:32 2017 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+BusOut M1 (D2,D3,D4,D5);
+char pos[4]={0x05,0x06,0x0A,0x09};
+//char pos1[4]={0x05,0x09,0x0A,0x06};
+//int h,a;
+int i;
+int main()
+{
+ while(1)
+ {
+
+ for(i=0;i<4;i++)
+ {
+ M1=0;
+ M1=pos[i];
+ led1=0;
+ led2=1;
+ wait(0.01);
+
+
+ }
+
+ // for(i=3;i==0;i--)
+ // {
+ // M1=pos[i];
+ // led2=0;
+ // led1=1;
+ // wait(0.01);
+ // }
+
+
+ }
+}
\ No newline at end of file