Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TEMP_SENSOR_0_IS_MAX31865 for BTT Octopus Boards #26574

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading