BMS_T2
Dependencies: INA226
Diff: max6675.h
- Revision:
- 3:61174d4de67d
- Parent:
- 2:3bbbe439ec11
--- a/max6675.h Tue Oct 13 06:26:34 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -#ifndef MAX6675_h -#define MAX6675_h - -#include "mbed.h" - -class max6675 -{ - SPI& spi; - DigitalOut ncs; - public: - - max6675(SPI& _spi, PinName _ncs); - void select(); - void deselect(); - - float read_temp(); - private: - PinName _CS_pin; - PinName _SO_pin; - PinName _SCK_pin; - int _units; - float _error; -}; - -#endif