Program the 7 Segment display on your RenBed using this program. Import the program into your Compiler and edit the code to display your birthday (DD > 5s wait > MM).

Dependencies:   SevenSegmentDisplay mbed

Fork of Renbed_Seven_Segment by Renishaw

Files at this revision

API Documentation at this revision

Comitter:
lawrences
Date:
Thu Oct 13 08:42:22 2016 +0000
Parent:
1:2a6f19dca1f4
Commit message:
version 2, defaults changed to Christmas day with a 2 second delay

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2a6f19dca1f4 -r 6dd23fbe7e50 main.cpp
--- a/main.cpp	Sat Sep 10 09:51:29 2016 +0000
+++ b/main.cpp	Thu Oct 13 08:42:22 2016 +0000
@@ -2,7 +2,7 @@
 *Renbed_Seven_Segment                                    *
 *Author: Dan Argust                                      *
 *                                                        *  
-*A program that controls the seven segment displays      *
+*Edited for use at Cotham School by SL                   *
 *********************************************************/
 
 #include "mbed.h"
@@ -11,7 +11,7 @@
 SevenSegmentDisplay seg(0); //creating the driver object
 
 int main(){
-    seg.DisplayDigits(3,0); //display the digits 3 and 4
-    wait(1);                //wait 1 second
-    seg.DisplayDigits(1,0); //display the digits 6 and 2
+    seg.DisplayDigits(2,5); //display the digits 2 and 5 for the the 25th day
+    wait(2);                //wait 2 seconds
+    seg.DisplayDigits(1,2); //display the digits 1 and 2 for the 12th month
 }
\ No newline at end of file