HW6 for OCE560

Dependencies:   mbed

Fork of shomberg_hw_5 by Russell Shomberg

Revision:
9:da0b72918880
Child:
11:42914083ac70
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OCE360Input.h	Thu Oct 25 18:12:33 2018 +0000
@@ -0,0 +1,19 @@
+#ifndef OCE360INPUT_H
+#define OCE360INPUT_H
+
+#include "mbed.h"
+
+DigitalIn myswitch(p7);
+AnalogIn Ain(p20);
+
+int switchPosition;
+int sensorVoltage;
+int sensorTemp; 
+
+int read_switch(void);
+
+float read_sensor(void);
+
+float convert_mV_to_temp(float sensorVoltage);
+
+#endif
\ No newline at end of file