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
temperature.cpp
- Committer:
- mmcdoanld81
- Date:
- 2022-03-17
- Revision:
- 0:8ef203a5084f
File content as of revision 0:8ef203a5084f:
#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);