Russell Shomberg
/
shomberg_hw_6
HW6 for OCE560
Fork of shomberg_hw_5 by
SegDisplay.h@12:ea407dcaff78, 2018-10-25 (annotated)
- Committer:
- rshomberg
- Date:
- Thu Oct 25 22:43:36 2018 +0000
- Revision:
- 12:ea407dcaff78
- Parent:
- 11:42914083ac70
- Child:
- 13:fa74bf0c3b8d
made SegWrite function and moved pin assignments to header files. This does not work.
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 | 12:ea407dcaff78 | 7 | BusOut Seg1(p12,p13,p14,p15,p16,p17,p18,p19); //01 02 03 04 05 06 07 08 09 10 |
rshomberg | 12:ea407dcaff78 | 8 | BusOut Seg2(p21,p22,p23,p24,p25,p26,p27,p28); //E D CC C DP B A CC F G |
rshomberg | 9:da0b72918880 | 9 | |
rshomberg | 9:da0b72918880 | 10 | char SegConvert(int SegValue); |
rshomberg | 9:da0b72918880 | 11 | |
rshomberg | 12:ea407dcaff78 | 12 | void SegWrite(float val); |
rshomberg | 12:ea407dcaff78 | 13 | |
rshomberg | 9:da0b72918880 | 14 | #endif |