Russell Shomberg
/
shomberg_hw_6
HW6 for OCE560
Fork of shomberg_hw_5 by
OCE360Input.h@14:b3c87a7c7689, 2018-10-30 (annotated)
- Committer:
- rshomberg
- Date:
- Tue Oct 30 14:08:40 2018 +0000
- Revision:
- 14:b3c87a7c7689
- Parent:
- 13:fa74bf0c3b8d
working code
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 | 13:fa74bf0c3b8d | 5 | |
rshomberg | 13:fa74bf0c3b8d | 6 | //DigitalIn myswitch(p7); // initialized in the cpp file |
rshomberg | 13:fa74bf0c3b8d | 7 | //AnalogIn Ain(p20); // initialized in the cpp file |
rshomberg | 13:fa74bf0c3b8d | 8 | |
rshomberg | 13:fa74bf0c3b8d | 9 | //int switchPosition; |
rshomberg | 13:fa74bf0c3b8d | 10 | //int sensorVoltage; |
rshomberg | 13:fa74bf0c3b8d | 11 | //int sensorTemp; |
rshomberg | 9:da0b72918880 | 12 | |
rshomberg | 9:da0b72918880 | 13 | int read_switch(void); |
rshomberg | 9:da0b72918880 | 14 | |
rshomberg | 9:da0b72918880 | 15 | float read_sensor(void); |
rshomberg | 9:da0b72918880 | 16 | |
rshomberg | 9:da0b72918880 | 17 | float convert_mV_to_temp(float sensorVoltage); |
rshomberg | 9:da0b72918880 | 18 | |
rshomberg | 9:da0b72918880 | 19 | #endif |