From 6732487469be3ae91d2f13a0543e1034c431be94 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Thu, 4 Apr 2019 21:51:06 +0300 Subject: [PATCH] MAX6675: default pins and SENSOR_SUPPORT dependency (#1646, #1666) --- code/espurna/config/sensors.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/espurna/config/sensors.h b/code/espurna/config/sensors.h index e0ac7e76..af481da2 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -856,6 +856,22 @@ #define VL53L1X_INTER_MEASUREMENT_PERIOD 50 // Period, in milliseconds, determining how #endif // often the sensor takes a measurement. +//------------------------------------------------------------------------------ +// MAX6675 +// Enable support by passing MAX6675_SUPPORT=1 build flag +//------------------------------------------------------------------------------ +#ifndef MAX6675_CS_PIN +#define MAX6675_CS_PIN 13 +#endif + +#ifndef MAX6675_SO_PIN +#define MAX6675_SO_PIN 12 +#endif + +#ifndef MAX6675_SCK_PIN +#define MAX6675_SCK_PIN 14 +#endif + //------------------------------------------------------------------------------ // EZOPH pH meter // Enable support by passing EZOPH_SUPPORT=1 build flag @@ -916,6 +932,7 @@ V9261F_SUPPORT || \ VEML6075_SUPPORT || \ VL53L1X_SUPPORT || \ + MAX6675_SUPPORT || \ EZOPH_SUPPORT \ ) #endif