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/
Fork of MAX31856_example_program by
Diff: main.cpp
- Revision:
- 0:456e9e702d57
- Child:
- 1:b58719a76fc3
diff -r 000000000000 -r 456e9e702d57 main.cpp --- /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); + } +} +