библиотека для подключения модуля термопары к микроконтроллеру
Dependents: NUCLEO_F410RB_MAX6675 PanelaSTM
Fork of max6675 by
max6675.h
- Committer:
- zelmic
- Date:
- 2018-06-11
- Revision:
- 4:f0cdf38c7cfc
- Parent:
- 0:b49d36e03092
File content as of revision 4:f0cdf38c7cfc:
#ifndef MAX6675_h
#define MAX6675_h
#include "mbed.h"
class max6675
{
SPI& spi;
DigitalOut ncs;// pin CS для выбора чипа
public:
max6675(SPI& _spi, PinName _ncs);
void select(); //захват линии SPI для данного чипа
void deselect();// освобождение SPI
float read_temp(); //чтение температуры
private:
PinName _CS_pin;
PinName _SO_pin;
PinName _SCK_pin;
//int _units;
//float _error;
};
#endif
