Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 97db577c9b
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.591 kb
#include <MAX6675.h>
int CS1 = 15; // CS pin on MAX6675
int SO1 = 16; // SO pin of MAX6675
int SCK1 = 17; // SCK pin of MAX6675
int units = 1; // Units to readout temp (0 = ˚F, 1 = ˚C)
float error = 0.0; // Temperature compensation error
float temperature = 0.0; // Temperature output variable
MAX6675 temp0(CS1,SO1,SCK1,units,error);
float updateMax() {
return temperature = temp0.read_temp(5); // Read the temp 5 times and return the average value to the var
}
float getLastThermoTemp() {
return temperature;
}
Jump to Line
Something went wrong with that request. Please try again.