Программа считывает информацию с модуля термопары MAX6675 и выводит в COM порт

Dependencies:   max6675 mbed

main.cpp

Committer:
zelmic
Date:
2018-06-11
Revision:
0:261d8456bda9

File content as of revision 0:261d8456bda9:

#include "mbed.h"
#include "max6675.h"

SPI spi(PA_7, PA_6, PA_5); // MOSI, MISO, SCLK
max6675 max(spi,PA_8);

int main() {
    float temp;
    while (1) {
      
        temp = max.read_temp();
        printf("\n\r Температура: %f",temp );
       
        wait(.25);
    }
}