Andrey Zheleznyakov / Mbed 2 deprecated NUCLEO_F410RB_MAX6675

Dependencies:   max6675 mbed

Files at this revision

API Documentation at this revision

Comitter:
zelmic
Date:
Mon Jun 11 06:50:52 2018 +0000
Commit message:
ver 1.0

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
max6675.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jun 11 06:50:52 2018 +0000
@@ -0,0 +1,16 @@
+#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);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/max6675.lib	Mon Jun 11 06:50:52 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/zelmic/code/max6675/#f0cdf38c7cfc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jun 11 06:50:52 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file