MAX6675 Module Pin Outs
// Sample Arduino MAX6675 Arduino Sketch #include "max6675.h" int ktcSO = 8; int ktcCS = 9; int ktcCLK = 10; MAX6675 ktc(ktcCLK, ktcCS, ktcSO); void setup() { Serial.begin(9600); // give the MAX a little time to settle delay(500); } void loop() { // basic readout test Serial.print("Deg C = "); Serial.print(ktc.readCelsius()); Serial.print("\t Deg F = "); Serial.println(ktc.readFahrenheit()); delay(500); }
No hay comentarios:
Publicar un comentario