Russell Shomberg
/
shomberg_hw_6
HW6 for OCE560
Fork of shomberg_hw_5 by
Diff: SegDisplay.cpp
- Revision:
- 11:42914083ac70
- Parent:
- 9:da0b72918880
- Child:
- 12:ea407dcaff78
diff -r c9a438114fbd -r 42914083ac70 SegDisplay.cpp --- a/SegDisplay.cpp Thu Oct 25 18:37:48 2018 +0000 +++ b/SegDisplay.cpp Thu Oct 25 18:58:41 2018 +0000 @@ -22,6 +22,9 @@ #include "mbed.h" #include "SegDisplay.h" +BusOut Seg1(p12,p13,p14,p15,p16,p17,p18,p19); //01 02 03 04 05 06 07 08 09 10 +BusOut Seg2(p21,p22,p23,p24,p25,p26,p27,p28); //E D CC C DP B A CC F G + char SegConvert(int SegValue) { // function 'SegConvert' char SegByte=0x00; switch (abs(SegValue)) { // ABCDEFGP