Russell Shomberg
/
shomberg_hw_6
HW6 for OCE560
Fork of shomberg_hw_5 by
OCE360Input.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 OCE360INPUT_H |
rshomberg | 9:da0b72918880 | 2 | #define OCE360INPUT_H |
rshomberg | 9:da0b72918880 | 3 | |
rshomberg | 9:da0b72918880 | 4 | #include "mbed.h" |
rshomberg | 12:ea407dcaff78 | 5 | DigitalIn myswitch(p7); |
rshomberg | 12:ea407dcaff78 | 6 | AnalogIn Ain(p20); |
rshomberg | 9:da0b72918880 | 7 | |
rshomberg | 9:da0b72918880 | 8 | int read_switch(void); |
rshomberg | 9:da0b72918880 | 9 | |
rshomberg | 9:da0b72918880 | 10 | float read_sensor(void); |
rshomberg | 9:da0b72918880 | 11 | |
rshomberg | 9:da0b72918880 | 12 | float convert_mV_to_temp(float sensorVoltage); |
rshomberg | 9:da0b72918880 | 13 | |
rshomberg | 9:da0b72918880 | 14 | #endif |