Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystem
Diff: max6675_2.h
- Revision:
- 0:cb620b090bf4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/max6675_2.h Mon Mar 02 14:45:01 2020 +0000
@@ -0,0 +1,26 @@
+
+#ifndef MAX6675_2_h
+#define MAX6675_2_h
+
+#include "mbed.h"
+
+class max6675_2
+{
+ SPI& spi_2;
+ DigitalOut ncs_2;
+ public:
+
+ max6675_2(SPI& _spi_2, PinName _ncs_2);
+ void select_2();
+ void deselect_2();
+
+ float read_temp_2();
+ private:
+ PinName _CS_pin_2;
+ PinName _SO_pin_2;
+ PinName _SCK_pin_2;
+ int _units_2;
+ float _error_2;
+};
+
+#endif