Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 LM75B mbed EthernetInterface mbed-rtos
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
Generated on Sat Jul 23 2022 22:59:36 by
1.7.2