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

main.cpp

Committer:
MiskinPrj
Date:
2016-04-20
Revision:
0:72cebff52cec
Child:
1:2a6f19dca1f4

File content as of revision 0:72cebff52cec:

/*********************************************************
*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
}