Farkle Game Code-Final
Dependencies: mbed 4DGL-uLCD-SE PinDetect
temperature.cpp
00001 #include <iostream> 00002 #include <fstream> 00003 #include <iomanip> 00004 #include <cmath> 00005 #include <cstdlib> 00006 #include <time.h> 00007 #include <string> 00008 #include <stdlib.h> 00009 #include <stdio.h> 00010 #include <sstream> 00011 00012 #include "farkleMath.h" 00013 #include "diceMath.h" 00014 #include "MMA8452.h" 00015 #include "uLCD_4DGL.h" 00016 #include "Speaker.h" 00017 #include "temperature.h" 00018 #include "PinDetect.h" 00019 #include "mbed.h" 00020 using namespace std; 00021 00022 00023 TMP36::TMP36(PinName pin) : _pin(pin) {} 00024 00025 float TMP36::read() { 00026 return ((_pin.read()*3.3)-0.500)*100.0; 00027 } 00028 00029 TMP36 myTMP36(p15);
Generated on Mon Aug 8 2022 08:07:50 by
1.7.2