Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Use MAX31865 flag (MarlinFirmware#26574)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
  • Loading branch information
thisiskeithb and thinkyhead authored Dec 26, 2023
1 parent 7603023 commit 06b9e40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_PRO_V1_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
//
// Temperature Sensors
//
#if TEMP_SENSOR_0 == -5
#define TEMP_0_PIN PF4 // TH0

#if TEMP_SENSOR_0_IS_MAX31865
#define TEMP_0_CS_PIN PF8 // Max31865 CS
#define TEMP_0_SCK_PIN PA5
#define TEMP_0_MISO_PIN PA6
#define TEMP_0_MOSI_PIN PA7
#define SOFTWARE_SPI // Max31865 and LCD SD share a set of SPIs, Set SD to softwareSPI for Max31865
#define FORCE_SOFT_SPI
#else
#define TEMP_0_PIN PF4 // TH0
#endif

#if !defined(Z_MIN_PROBE_PIN) && DISABLED(BLTOUCH)
Expand Down
5 changes: 2 additions & 3 deletions Marlin/src/pins/stm32h7/pins_BTT_OCTOPUS_PRO_V1_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,18 @@
// Temperature Sensors
//
#define TEMP_BED_PIN PF3 // TB
#define TEMP_0_PIN PF4 // TH0
#define TEMP_1_PIN PF5 // TH1
#define TEMP_2_PIN PF6 // TH2
#define TEMP_3_PIN PF7 // TH3

#if TEMP_SENSOR_0 == -5
#if TEMP_SENSOR_0_IS_MAX31865
#define TEMP_0_CS_PIN PF8 // Max31865 CS
#define TEMP_0_SCK_PIN PA5
#define TEMP_0_MISO_PIN PA6
#define TEMP_0_MOSI_PIN PA7
#define SOFTWARE_SPI // Max31865 and LCD SD share a set of SPIs, Set SD to softwareSPI for Max31865
#define FORCE_SOFT_SPI
#else
#define TEMP_0_PIN PF4 // TH0
#endif

//
Expand Down

0 comments on commit 06b9e40

Please sign in to comment.