Simple control of the seven segment display

Dependencies:   SevenSegmentDisplay mbed

Files at this revision

API Documentation at this revision

Comitter:
MiskinPrj
Date:
Wed Apr 20 12:36:46 2016 +0000
Commit message:

Changed in this revision

SevenSegmentDisplay.lib Show annotated file Show diff for this revision Revisions of this file
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
diff -r 000000000000 -r 72cebff52cec SevenSegmentDisplay.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SevenSegmentDisplay.lib	Wed Apr 20 12:36:46 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/jf1452/code/SevenSegmentDisplay/#cb7339a2e196
diff -r 000000000000 -r 72cebff52cec main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Apr 20 12:36:46 2016 +0000
@@ -0,0 +1,17 @@
+/*********************************************************
+*Renbed_Seven_Segment                                    *
+*Author: Dan Argust                                      *
+*                                                        *  
+*A program that controls the seven segment displays      *
+*********************************************************/
+
+#include "mbed.h"
+#include "SevenSegmentDisplay.h"
+
+SevenSegmentDisplay seg(0); //creating the driver object
+
+int main(){
+    seg.DisplayDigits(3,4); //display the digits 3 and 4
+    wait(1);                //wait 1 second
+    seg.DisplayDigits(6,2); //display the digits 6 and 2
+}
\ No newline at end of file
diff -r 000000000000 -r 72cebff52cec mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Apr 20 12:36:46 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file