Maxim MAX6675 Cold-Junction-Compensated K-Thermocoupleto-Digital Converter (0°C to +1024°C) os2 and os5
Dependents: proyectoprueba3 proyectoRTOS proyectoRTOS2 proyectoRTOS ... more
Diff: max6675.h
- Revision:
- 2:74731b8476a0
- Parent:
- 0:7c1c768af92a
diff -r 7c1c768af92a -r 74731b8476a0 max6675.h --- a/max6675.h Thu May 09 22:17:49 2019 +0000 +++ b/max6675.h Mon Apr 27 06:43:19 2020 +0000 @@ -36,13 +36,14 @@ public: max6675(PinName miso, PinName sclk, PinName cs); - + // read temperature 0 Centigrade, 1 Fahrenheit float gettemp(int cf); private: SPI max; - DigitalOut _cs; + DigitalOut _cs; + Timer t; }; #endif