From 3490a2f85211e893d66f7a8d8c5f5fa5bcc45d9d Mon Sep 17 00:00:00 2001 From: Luciano Andrade Date: Fri, 11 Jan 2019 17:44:25 -0300 Subject: [PATCH] Max6675 CI Integration (#1482) --- code/espurna/config/hardware.h | 9 +++++++++ code/espurna/config/types.h | 1 + 2 files changed, 10 insertions(+) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 790acf0b..d3d4b604 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -3336,6 +3336,7 @@ #define PMSX003_SUPPORT 1 #define SENSEAIR_SUPPORT 1 #define VL53L1X_SUPPORT 1 + #define MAX6675_SUPPORT 1 // A bit of lights - pin 5 #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT @@ -3371,6 +3372,14 @@ #define MICS2710_SUPPORT 1 #define MICS5525_SUPPORT 1 + // MAX6675 14 11 10 + #ifndef MAX6675_SUPPORT + #define MAX6675_SUPPORT 1 + #endif + #define MAX6675_CS_PIN 14 + #define MAX6675_SO_PIN 11 + #define MAX6675_SCK_PIN 10 + #elif defined(TRAVIS02) // Relay provider dual diff --git a/code/espurna/config/types.h b/code/espurna/config/types.h index 83923293..31ccafd2 100644 --- a/code/espurna/config/types.h +++ b/code/espurna/config/types.h @@ -293,6 +293,7 @@ #define SENSOR_VL53L1X_ID 32 #define SENSOR_EZOPH_ID 33 #define SENSOR_BMP180_ID 34 +#define SENSOR_MAX6675_ID 35 //-------------------------------------------------------------------------------- // Magnitudes