Andrey Zheleznyakov
/
NUCLEO_F410RB_MAX6675
Программа считывает информацию с модуля термопары MAX6675 и выводит в COM порт
Revision 0:261d8456bda9, committed 2018-06-11
- Comitter:
- zelmic
- Date:
- Mon Jun 11 06:50:52 2018 +0000
- Commit message:
- ver 1.0
Changed in this revision
diff -r 000000000000 -r 261d8456bda9 main.cpp --- /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
diff -r 000000000000 -r 261d8456bda9 max6675.lib --- /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
diff -r 000000000000 -r 261d8456bda9 mbed.bld --- /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