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.
max6675.h
- Committer:
- tecnosys
- Date:
- 2010-06-17
- Revision:
- 2:661ac326e3b3
- Parent:
- 0:b49d36e03092
File content as of revision 2:661ac326e3b3:
#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
MAX6675 Thermocouple