Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

MAX6675 Arduino Library

Version: 2.0.1

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Summary

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!

MAX6675 temp0(CS,SO,SCK,units);

Variables:

  • 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();