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.
Dependencies: mbed SDFileSystem
max6675_3.h
- Committer:
- BoostNori
- Date:
- 2020-03-02
- Revision:
- 0:cb620b090bf4
File content as of revision 0:cb620b090bf4:
#ifndef MAX6675_3_h
#define MAX6675_3_h
#include "mbed.h"
class max6675_3
{
SPI& spi_3;
DigitalOut ncs_3;
public:
max6675_3(SPI& _spi_3, PinName _ncs_3);
void select_3();
void deselect_3();
float read_temp_3();
private:
PinName _CS_pin_3;
PinName _SO_pin_3;
PinName _SCK_pin_3;
int _units_3;
float _error_3;
};
#endif