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-23
Revision:
3:538e17979246
Parent:
2:6bfe732ba6bc

File content as of revision 3:538e17979246:

#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;
    };
};