Andrey Zheleznyakov / Mbed 2 deprecated NUCLEO_F410RB_MAX6675

Dependencies:   max6675 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "max6675.h"
00003 
00004 SPI spi(PA_7, PA_6, PA_5); // MOSI, MISO, SCLK
00005 max6675 max(spi,PA_8);
00006 
00007 int main() {
00008     float temp;
00009     while (1) {
00010       
00011         temp = max.read_temp();
00012         printf("\n\r Температура: %f",temp );
00013        
00014         wait(.25);
00015     }
00016 }