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

temperature.h

Committer:
bertgereels
Date:
2018-03-19
Revision:
2:6bfe732ba6bc
Parent:
0:88d3b9015f7c

File content as of revision 2:6bfe732ba6bc:

#pragma once
#include "LM75B.h"
#include "mbed.h"

namespace ProjectOne{
    
    class Temperature{
        public:
            /*
            * 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;
    };
};