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.
Fork of MAX31855 by
max31855.h
- Committer:
- Stavlin
- Date:
- 2012-08-16
- Revision:
- 0:656c522152d4
- Child:
- 1:5eeee89cb281
File content as of revision 0:656c522152d4:
#ifndef MAX31855_h #define MAX31855_h #include "mbed.h" class max31855 { SPI& spi; DigitalOut ncs; Timer pollTimer; public: max31855(SPI& _spi, PinName _ncs); void select(); void deselect(); void initialise(); int ready(); float chipTemp; float read_temp(); private: PinName _CS_pin; PinName _SO_pin; PinName _SCK_pin; int _units; float _error; }; #endif