// // FILE: max31855_demo2.ino // AUTHOR: Rob Tillaart // VERSION: 0.4.0 // PURPOSE: thermocouple lib demo application // DATE: 2014-01-02 // URL: https://github.com/RobTillaart/MAX31855_RT // #include "MAX31855.h" const int doPin = 7; const int csPin = 6; const int clPin = 5; MAX31855 tc; float t1, t2; void setup() { Serial.begin(115200); Serial.print("Start max31855_demo2: "); Serial.println(MAX31855_VERSION); Serial.println(); tc.begin(clPin, csPin, doPin); tc.read(); t1 = tc.getTemperature(); delay(1000); } void loop() { tc.read(); t2 = tc.getTemperature(); Serial.print("delta:\t"); Serial.println(t2 - t1, 2); t1 = t2; delay(1000); } // -- END OF FILE --