Russell Shomberg
/
shomberg_hw_6
HW6 for OCE560
Fork of shomberg_hw_5 by
SegDisplay.h@13:fa74bf0c3b8d, 2018-10-30 (annotated)
- Committer:
- rshomberg
- Date:
- Tue Oct 30 14:08:21 2018 +0000
- Revision:
- 13:fa74bf0c3b8d
- Parent:
- 12:ea407dcaff78
working code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rshomberg | 9:da0b72918880 | 1 | #ifndef SEGDISPLAY_H |
rshomberg | 9:da0b72918880 | 2 | #define SEGDISPLAY_H |
rshomberg | 9:da0b72918880 | 3 | |
rshomberg | 9:da0b72918880 | 4 | #include "mbed.h" |
rshomberg | 9:da0b72918880 | 5 | |
rshomberg | 9:da0b72918880 | 6 | // INPUTS |
rshomberg | 13:fa74bf0c3b8d | 7 | // Initialized in cpp file |
rshomberg | 13:fa74bf0c3b8d | 8 | //BusOut Seg1(p12,p13,p14,p15,p16,p17,p18,p19); //01 02 03 04 05 06 07 08 09 10 |
rshomberg | 13:fa74bf0c3b8d | 9 | //BusOut Seg2(p21,p22,p23,p24,p25,p26,p27,p28); //E D CC C DP B A CC F G |
rshomberg | 13:fa74bf0c3b8d | 10 | |
rshomberg | 13:fa74bf0c3b8d | 11 | //int ones; // ones digit of output |
rshomberg | 13:fa74bf0c3b8d | 12 | //int tens; // tens digit of output |
rshomberg | 9:da0b72918880 | 13 | |
rshomberg | 9:da0b72918880 | 14 | char SegConvert(int SegValue); |
rshomberg | 9:da0b72918880 | 15 | |
rshomberg | 12:ea407dcaff78 | 16 | void SegWrite(float val); |
rshomberg | 12:ea407dcaff78 | 17 | |
rshomberg | 9:da0b72918880 | 18 | #endif |