Fork the MAX31855 library. Allows a fxn to be called to select and unselect the TC. Now using a shift register array we can multiplex a great number of these TC chips!
Fork of MAX31855 by
Diff: max31855.h
- Revision:
- 2:b978f1503c27
- Parent:
- 1:5eeee89cb281
--- a/max31855.h Tue Oct 23 10:51:21 2012 +0000 +++ b/max31855.h Wed Oct 30 07:05:34 2013 +0000 @@ -6,16 +6,17 @@ class max31855 { SPI& spi; - DigitalOut ncs; + void(*selectfxn)(void); + void(*unselectfxn)(void); + //DigitalOut ncs; Timer pollTimer; public: - max31855(SPI& _spi, PinName _ncs); + max31855(SPI& _spi, void(*sel)(void), void(*usel)(void)); void select(); void deselect(); void initialise(int setType=0); - - int ready(); + int faultCode; float chipTemp;