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: mbed 4DGL-uLCD-SE PinDetect
Diff: temperature.cpp
- 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