MAX6675 Arduino Library
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
The primary use of the library is to easily interface with a MAX6675 chip via it's SPI interface. Use the following code to initialize the library. V2 also greatly improves performance and timing of the chip for more accurate reads. Thanks Ed!
- CS is chip select pin of chip
- SO is data out of the chip
- SCK is the clock pin of the chip
- units is one of the following:
- 0 = raw 0-4095 value
- 1 = temp in ˚C
- 2 = temp in ˚F
Following this you can use the read_temp() function to return the temperature as a float.
temperature = temp0.read_temp();