.
Revision 1:1926cb6ea141, committed 2015-07-30
- Comitter:
- Jamestom999
- Date:
- Thu Jul 30 08:02:38 2015 +0000
- Parent:
- 0:cfa2cc5fc505
- Commit message:
- 7-seg library
Changed in this revision
Display.cpp | Show annotated file Show diff for this revision Revisions of this file |
Display.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Display.cpp Tue Jul 28 08:14:46 2015 +0000 +++ b/Display.cpp Thu Jul 30 08:02:38 2015 +0000 @@ -90,9 +90,17 @@ SendData(ScreenText[n+3], 2); SendData(ScreenText[n+4], 3); wait(0.3); - } - + } +} + +void DisplayNumber(char n1,char n2,char n3,char n4,char n5){ - - + timer=Disable; + DisplayBCD(1); //turn off decoders + + SendData(n1, 5); + SendData(n2, 4); + SendData(n3, 1); + SendData(n4, 2); + SendData(n5, 3); }
--- a/Display.h Tue Jul 28 08:14:46 2015 +0000 +++ b/Display.h Thu Jul 30 08:02:38 2015 +0000 @@ -19,3 +19,4 @@ void DisplayUpdate(void); void DisplayScroll(char data[40]); void DisplayInit(void); +void DisplayNumber(char n1,char n2,char n3,char n4,char n5);