Permalink
Browse files

readme & example

  • Loading branch information...
1 parent 548f866 commit 31105cedc0d085756d40a5e70ed72e6727110e0d @ladyada ladyada committed May 25, 2012
Showing with 88 additions and 0 deletions.
  1. +19 −0 README.txt
  2. +43 −0 examples/serialthermocouple/serialthermocouple.pde
  3. +26 −0 license.txt
View
@@ -0,0 +1,19 @@
+This is the Adafruit MAX31885 Arduino Library
+
+Tested and works great with the Adafruit Thermocouple Breakout w/MAX31885K
+ ------> http://www.adafruit.com/products/269
+
+These modules use SPI to communicate, 3 pins are required to
+interface
+
+Adafruit invests time and resources providing this open source code,
+please support Adafruit and open-source hardware by purchasing
+products from Adafruit!
+
+Written by Limor Fried/Ladyada for Adafruit Industries.
+BSD license, check license.txt for more information
+All text above must be included in any redistribution
+
+To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_MAX31885. Check that the Adafruit_MAX31885 folder contains Adafruit_MAX31885.cpp and Adafruit_MAX31885.h
+
+Place the Adafruit_MAX31885 library folder your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
@@ -0,0 +1,43 @@
+/***************************************************
+ This is an example for the Adafruit Thermocouple Sensor w/MAX31855K
+
+ Designed specifically to work with the Adafruit Thermocouple Sensor
+ ----> https://www.adafruit.com/products/269
+
+ These displays use SPI to communicate, 3 pins are required to
+ interface
+ Adafruit invests time and resources providing this open source code,
+ please support Adafruit and open-source hardware by purchasing
+ products from Adafruit!
+
+ Written by Limor Fried/Ladyada for Adafruit Industries.
+ BSD license, all text above must be included in any redistribution
+ ****************************************************/
+
+#include "Adafruit_MAX31855.h"
+
+int thermoDO = 3;
+int thermoCS = 4;
+int thermoCLK = 5;
+
+Adafruit_MAX31855 thermocouple(thermoCLK, thermoCS, thermoDO);
+
+void setup() {
+ Serial.begin(9600);
+
+ Serial.println("MAX31855 test");
+ // wait for MAX chip to stabilize
+ delay(500);
+}
+
+void loop() {
+ // basic readout test, just print the current temp
+ Serial.print("Internal Temp = ");
+ Serial.println(thermocouple.readInternal());
+ Serial.print("C = ");
+ Serial.println(thermocouple.readCelsius());
+ Serial.print("F = ");
+ Serial.println(thermocouple.readFarenheit());
+
+ delay(1000);
+}
View
@@ -0,0 +1,26 @@
+Software License Agreement (BSD License)
+
+Copyright (c) 2012, Adafruit Industries
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+3. Neither the name of the copyright holders nor the
+names of its contributors may be used to endorse or promote products
+derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 comments on commit 31105ce

Please sign in to comment.