-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdafruit_MAX6675.h
28 lines (23 loc) · 957 Bytes
/
Adafruit_MAX6675.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/***************************************************
This is a library for the Adafruit Thermocouple Sensor w/MAX31855K
Designed specifically to work with the Adafruit Thermocouple Sensor
----> https://www.adafruit.com/products/269
These displays use SPI to communicate, 3 pins are required to
interface
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
****************************************************/
#include "application.h"
class Adafruit_MAX6675 {
public:
Adafruit_MAX6675(int8_t sclk_pin, int8_t cs_pin, int8_t miso_pin);
double readCelsius(void);
double readFahrenheit(void);
// For compatibility with older versions:
private:
int8_t sclk, miso, cs;
uint8_t spiread(void);
};