ss

Dependencies:   mbed MPU6050

Revision:
0:ac37887d5bb2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 22 19:24:30 2021 +0000
@@ -0,0 +1,16 @@
+#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);
+        
+        }
+     
+}
\ No newline at end of file