Datasheet

Library Reference
You can start out by creating a MAX31856 object with either software SPI (where all four pins can be any I/O) using
Or you can use hardware SPI. With hardware SPI you
must
use the hardware SPI pins for your Arduino - and each
arduino type has different pins! Check the SPI reference to see what pins to use. (https://adafru.it/d5h)
In this case, you can use any CS pin, but the other three pins are fixed
Once started, you can initialize the sensor with
You'll also need to set the thermocouple type, remember there's a lot of options! Set the type with:
Your options for the
TCTYPE
are:
MAX31856_TCTYPE_B
MAX31856_TCTYPE_E
MAX31856_TCTYPE_J
MAX31856_TCTYPE_K
MAX31856_TCTYPE_N
MAX31856_TCTYPE_R
MAX31856_TCTYPE_S
// Use software SPI: CS, DI, DO, CLK
Adafruit_MAX31856 max = Adafruit_MAX31856(10, 11, 12, 13);
// use hardware SPI, just pass in the CS pin
Adafruit_MAX31856 max = Adafruit_MAX31856(10);
max.begin()
max.setThermocoupleType(MAX31856_TCTYPE_xxx)
© Adafruit Industries https://learn.adafruit.com/adafruit-max31856-thermocouple-amplifier Page 16 of 20