Michael McDonald / Mbed 2 deprecated Farkle

Dependencies:   mbed 4DGL-uLCD-SE PinDetect

Revision:
0:8ef203a5084f
diff -r 000000000000 -r 8ef203a5084f temperature.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/temperature.cpp	Thu Mar 17 17:50:51 2022 +0000
@@ -0,0 +1,29 @@
+#include <iostream>
+#include <fstream>
+#include <iomanip>
+#include <cmath>
+#include <cstdlib>
+#include <time.h>
+#include <string>
+#include <stdlib.h>
+#include <stdio.h>
+#include <sstream>
+
+#include "farkleMath.h"
+#include "diceMath.h"
+#include "MMA8452.h"
+#include "uLCD_4DGL.h"
+#include "Speaker.h"
+#include "temperature.h"
+#include "PinDetect.h"
+#include "mbed.h"
+using namespace std;
+
+
+TMP36::TMP36(PinName pin) : _pin(pin) {}
+
+float TMP36::read() {
+ return ((_pin.read()*3.3)-0.500)*100.0;
+}
+
+TMP36 myTMP36(p15);
\ No newline at end of file