Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.
Dependencies: C12832 LM75B mbed EthernetInterface mbed-rtos
Diff: temperature.h
- Revision:
- 2:6bfe732ba6bc
- Parent:
- 0:88d3b9015f7c
diff -r b5c534165dfe -r 6bfe732ba6bc temperature.h --- a/temperature.h Wed Mar 14 07:59:21 2018 +0000 +++ b/temperature.h Mon Mar 19 11:32:54 2018 +0000 @@ -6,8 +6,20 @@ class Temperature{ public: - //LM75B sensor(p28,p27); + /* + * Constructor for Temperature class. + * + @param The pins connected to the LM75B temperature sensor on the application board. + @return Nothing. + */ Temperature(PinName firstPin=p28, PinName secondPin=p27); + + /* + * Method that reads the temperature value. + * + @param Nothing. + @return A float containing the temperature. + */ float readTemperature(void); private: LM75B sensor;