Is program me ek se jyaada LED control kia apan ne, BusOut use karke

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
akashlal
Date:
Tue Jun 28 08:22:33 2016 +0000
Commit message:
Apna lab 2 program

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 28 08:22:33 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+BusOut led(PTB18, PTB19,PTD1); 
+
+int main()
+{
+    while(1)
+    {
+        led=0x6;
+        wait(0.5);
+        led=0x5;
+        wait(0.5);
+        led=0x3;
+        wait(0.5);
+        led=0x0;
+        wait(0.5);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jun 28 08:22:33 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file