Michael McDonald / Mbed 2 deprecated Farkle

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);