This example program utilizes the MAX31856 mbed library available from Maxim Integrated at the following link: https://os.mbed.com/teams/Maxim-Integrated/code/MAX31856/

Dependencies:   MAX31856 mbed

Fork of MAX31856_example_program by Central Applications - Mbed Code repo

Revision:
0:456e9e702d57
Child:
1:b58719a76fc3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jul 19 17:05:46 2017 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "max32630fthr.h"
+
+DigitalOut led1(LED1);
+//SPI testSPI(SPIO MOSI,SPIO MISO,SPIO SCK);
+SPI testSPI(P5_1,P5_2,P5_0);
+MAX31855 Thermocouple2(testSPI,P3_2,MAX31856_CR1_TC_TYPE_J,MAX31856_CR0_FILTER_OUT_60Hz);
+// main() runs in its own thread in the OS
+int main() {
+    while (true) {
+        led1 = !led1;
+        wait(0.5);
+    }
+}
+