akshay birnale / Mbed 2 deprecated mbed_sevenlib

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
akshay28
Date:
Wed Nov 30 10:34:26 2016 +0000
Commit message:
seven segment display

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	Wed Nov 30 10:34:26 2016 +0000
@@ -0,0 +1,45 @@
+#include "mbed.h"
+
+BusOut port(p5,p6,p7,p8,p9,p10,p11,p12);
+
+
+main()
+{
+while(1)
+
+{
+
+port=0X40;
+wait(0.5);
+port=0X79;
+wait(0.5);
+port=0X24;
+wait(0.5);
+port=0X30;
+wait(0.5);
+port=0X19;
+wait(0.5);
+port=0X12;
+wait(0.5);
+port=0X02;
+wait(0.5);
+port=0Xf8;
+wait(0.5);
+port=0X00;
+wait(0.5);
+port=0X10;
+wait(0.5);
+port=0X08;
+wait(0.5);
+port=0X00;
+wait(0.5);
+port=0X46;
+wait(0.5);
+port=0X40;
+wait(0.5);
+port=0X06;
+wait(0.5);
+port=0X0e;
+
+}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Nov 30 10:34:26 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/d75b3fe1f5cb
\ No newline at end of file