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
main.cpp
- Committer:
- lawrences
- Date:
- 2016-10-13
- Revision:
- 2:6dd23fbe7e50
- Parent:
- 1:2a6f19dca1f4
File content as of revision 2:6dd23fbe7e50:
/********************************************************* *Renbed_Seven_Segment * *Author: Dan Argust * * * *Edited for use at Cotham School by SL * *********************************************************/ #include "mbed.h" #include "SevenSegmentDisplay.h" SevenSegmentDisplay seg(0); //creating the driver object int main(){ 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 }