Switch branches/tags
Find file Copy path
45 lines (34 sloc) 1.14 KB
This is a library for the Adafruit Thermocouple Sensor w/MAX31855K
Designed specifically to work with the Adafruit Thermocouple Sensor
These displays use SPI to communicate, 3 pins are required to
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
#ifndef ADAFRUIT_MAX31855_H
#define ADAFRUIT_MAX31855_H
#if (ARDUINO >= 100)
#include "Arduino.h"
#include "WProgram.h"
class Adafruit_MAX31855 {
Adafruit_MAX31855(int8_t _sclk, int8_t _cs, int8_t _miso);
Adafruit_MAX31855(int8_t _cs);
void begin(void);
double readInternal(void);
double readCelsius(void);
double readFarenheit(void);
uint8_t readError();
boolean initialized;
int8_t sclk, miso, cs;
uint32_t spiread32(void);