Skip to content

Commit 6732487

Browse files
authored
MAX6675: default pins and SENSOR_SUPPORT dependency (xoseperez#1646, xoseperez#1666)
1 parent edef163 commit 6732487

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

code/espurna/config/sensors.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,22 @@
856856
#define VL53L1X_INTER_MEASUREMENT_PERIOD 50 // Period, in milliseconds, determining how
857857
#endif // often the sensor takes a measurement.
858858

859+
//------------------------------------------------------------------------------
860+
// MAX6675
861+
// Enable support by passing MAX6675_SUPPORT=1 build flag
862+
//------------------------------------------------------------------------------
863+
#ifndef MAX6675_CS_PIN
864+
#define MAX6675_CS_PIN 13
865+
#endif
866+
867+
#ifndef MAX6675_SO_PIN
868+
#define MAX6675_SO_PIN 12
869+
#endif
870+
871+
#ifndef MAX6675_SCK_PIN
872+
#define MAX6675_SCK_PIN 14
873+
#endif
874+
859875
//------------------------------------------------------------------------------
860876
// EZOPH pH meter
861877
// Enable support by passing EZOPH_SUPPORT=1 build flag
@@ -916,6 +932,7 @@
916932
V9261F_SUPPORT || \
917933
VEML6075_SUPPORT || \
918934
VL53L1X_SUPPORT || \
935+
MAX6675_SUPPORT || \
919936
EZOPH_SUPPORT \
920937
)
921938
#endif

0 commit comments

Comments
 (0)