Bert Gereels / Mbed 2 deprecated ProjectOne

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers temperature.h Source File

temperature.h

00001 #pragma once
00002 #include "LM75B.h"
00003 #include "mbed.h"
00004 
00005 namespace ProjectOne{
00006     
00007     class Temperature{
00008         public:
00009             /*
00010             * Constructor for Temperature class.
00011             *
00012             @param The pins connected to the LM75B temperature sensor on the application board.
00013             @return Nothing.
00014             */
00015             Temperature(PinName firstPin=p28, PinName secondPin=p27);
00016             
00017             /*
00018             * Method that reads the temperature value.
00019             *
00020             @param Nothing.
00021             @return A float containing the temperature.
00022             */
00023             float readTemperature(void);
00024         private:
00025             LM75B sensor;
00026     };
00027 };
00028