библиотека для подключения модуля термопары к микроконтроллеру
Dependents: NUCLEO_F410RB_MAX6675 PanelaSTM
Fork of max6675 by
Diff: max6675.h
- Revision:
- 4:f0cdf38c7cfc
- Parent:
- 0:b49d36e03092
diff -r 8516e00ad03c -r f0cdf38c7cfc max6675.h --- a/max6675.h Fri Jun 18 10:44:36 2010 +0000 +++ b/max6675.h Mon Jun 11 06:48:27 2018 +0000 @@ -6,20 +6,20 @@ class max6675 { SPI& spi; - DigitalOut ncs; + DigitalOut ncs;// pin CS для выбора чипа public: - max6675(SPI& _spi, PinName _ncs); - void select(); - void deselect(); + max6675(SPI& _spi, PinName _ncs); + void select(); //захват линии SPI для данного чипа + void deselect();// освобождение SPI - float read_temp(); + float read_temp(); //чтение температуры private: PinName _CS_pin; PinName _SO_pin; PinName _SCK_pin; - int _units; - float _error; + //int _units; + //float _error; }; #endif