HW6 for OCE560

Dependencies:   mbed

Fork of shomberg_hw_5 by Russell Shomberg

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?

UserRevisionLine numberNew 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