ss

Dependencies:   mbed MPU6050

main.cpp

Committer:
SantiagoE
Date:
2021-02-22
Revision:
0:ac37887d5bb2

File content as of revision 0:ac37887d5bb2:

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

SPI spi (D11, D12, D13); //MOSI, MISO, SCK
max6675 maxtemp(spi,D10); // CS
Serial pc(USBTX, USBRX); //Serial USB
int main(){
while (1){
        
        float temp= maxtemp.read_temp();// lee la variable de temp
        pc.printf(" \n\rtemperatura: \%5.2F C",temp);// imprime el valor de temp
        wait(0.7);
        
        }
     
}