#define FAN_PIN -1 // Default is RAMPS_D9_PIN The fix is a simple one: In your pins_RAMPS.h file, modify the lines shown above to read this instead: The problem here should be pretty self-explanatory: We’re telling Marlin that the EXTRUDER_0_AUTO_FAN_PIN and the FAN_PIN are both located at the same place (the shorthand version of “9” vice “RAMPS_D9_PIN” is located elsewhere, but is beyond the scope of this issue), and thought they are technically at the same spot, technically doesn’t cut it here. #if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed Now look at the pins_RAMPS.h file in your sketch at around line 150, and you’ll see this: You’ll see something similar to the following: In the Configuration_adv.h file that I’ve posted for download, look at the file around line 211 (if you don’t have the line numbers enabled, do that now by clicking File > Preferences in the Arduino IDE, and putting a check in the Display line numbers checkbox). For the purposes of this particular guide, the specific pins file we’re looking at is the pins_RAMPS.h file.īefore addressing the fix, let’s look at the cause.
This is caused when you try to, as the error message states, set the EXTRUDER_0_AUTO_FAN_PIN in Configuration_adv.h to the same pin as FAN_PIN in the respective pins file.