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
main.cpp
- Committer:
- DevinAlexander
- Date:
- 2017-07-19
- Revision:
- 0:456e9e702d57
- Child:
- 1:b58719a76fc3
File content as of revision 0:456e9e702d57:
#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); } }