<p>Looking at the following code, from <a href="https://github.com/JimBrown/MarlinTarantula/blob/2ce73937f3c57aac28a8d5f11a6ed9135a27cdca/Marlin/pins_RAMPS.h#L139" rel="nofollow noreferrer">Line 139</a>, <a href="https://github.com/JimBrown/MarlinTarantula/blob/2ce73937f3c57aac28a8d5f11a6ed9135a27cdca/Marlin/pins_RAMPS.h" rel="nofollow noreferrer">pins_RAMPS.h</a></p>

<p><a href="https://i.stack.imgur.com/ufVqI.png" rel="nofollow noreferrer" title="Screenshot of code snippet"><img src="https://i.stack.imgur.com/ufVqI.png" alt="Screenshot of code snippet" title="Screenshot of code snippet"></a></p>

<p>Here is the actual code:</p>

<pre><code>#if ENABLED(EXTRUDER_USE_E1)
  #define E0_STEP_PIN        36
  #define E0_DIR_PIN         34
  #define E0_ENABLE_PIN      30
  #ifndef E0_CS_PIN
    #define E0_CS_PIN        44
  #endif
#else
  #define E0_STEP_PIN        26
  #define E0_DIR_PIN         28
  #define E0_ENABLE_PIN      24
  #ifndef E0_CS_PIN
  #define E0_CS_PIN        42
  #endif
#endif

#if DISABLED(X_AXIS_USE_E1) &amp;&amp; DISABLED(Y_AXIS_USE_E1) &amp;&amp; DISABLED(Z_AXIS_USE_E1) &amp;&amp; DISABLED(EXTRUDER_USE_E1)
  #define E1_STEP_PIN        36
  #define E1_DIR_PIN         34
  #define E1_ENABLE_PIN      30
  #ifndef E1_CS_PIN
  #define E1_CS_PIN        44
  #endif
#endif
</code></pre>

<p>I've already tried everything that the online community tells me to do to solve this problem, but that all doesn't help me. Almost everyone is saying that I just have to swap these lines of code and it will work, but it's not working. Any ideas ?</p>

<p>By the way E0 is not working because I've burnt a pot on it :)</p>

[{'answer_id': 5965, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 1, 'selected': False, 'text': '<p>At first it was unclear from where the snippet you posted is taken from as it was not stated in the question (<em>this has now been addressed by a moderator edit</em>).</p>\n\n<p>Depending on the value of <code>EXTRUDER_USE_E1</code> (and where and how it is set) the underlying code of the if statement will be carried out. Albeit said, swapping lines will not work, if you want to use the E1 connector of your motherboard, you have to make the printer think that it is using the E0 while it is redirecting to E1! This implies that you need to assign the pins of the E1 to the E0 extruder (so swap the pins, not the lines). This has been explained before in <a href="https://3dprinting.stackexchange.com/questions/5840/how-to-change-e0-to-e1-on-marlin-1-1">this topic</a> by editing the correct pin layout file of the Marlin firmware.</p>\n\n<hr>\n\n<p><strong>EDIT :</strong> Further investigation shows that you have a custom Marlin for the TEVO Tarantula and are using the fork of Marlin maintained by <a href="https://github.com/JimBrown/MarlinTarantula" rel="nofollow noreferrer">JimBrown</a> (<strong>this is essential information</strong> for your question). I have looked into the files, the only thing you would need to do is define the constant <code>EXTRUDER_USE_E1</code> in your <a href="https://github.com/JimBrown/MarlinTarantula/blob/EasyConfig-1.1.x/Marlin/Configuration.h" rel="nofollow noreferrer">configuration.h</a> file:</p>\n\n<pre><code>//#define EXTRUDER_USE_E1\n</code></pre>\n\n<p>to:</p>\n\n<pre><code>#define EXTRUDER_USE_E1\n</code></pre>\n\n<p>So do not swap anything. Once this constant is defined, the pin re-allocation is done for you automatically! (see the <a href="https://github.com/JimBrown/MarlinTarantula/blob/EasyConfig-1.1.x/Marlin/pins_RAMPS.h" rel="nofollow noreferrer">pins_RAMPS.h file</a>)</p>\n\n<p>Basically, this is exactly the same as is explained in topic <a href="https://3dprinting.stackexchange.com/questions/5840/how-to-change-e0-to-e1-on-marlin-1-1">How to change E0 to E1 on Marlin 1.1?</a> and hence a duplicate. ;)</p>\n'}, {'answer_id': 10052, 'author': 'Alfred Hamori', 'author_id': 16605, 'author_profile': 'https://3dprinting.stackexchange.com/users/16605', 'pm_score': 0, 'selected': False, 'text': "<p>I simply swapped the pins </p>\n\n<pre><code>#define E1_STEP_PIN        26  //swapping to E1 FRED\n#define E1_DIR_PIN         28\n#define E1_ENABLE_PIN      24\n#ifndef E1_CS_PIN\n  #define E1_CS_PIN        42\n#endif\n\n#define E0_STEP_PIN        36  //swapping to E0 FRED\n#define E0_DIR_PIN         34\n#define E0_ENABLE_PIN      30\n#ifndef E0_CS_PIN\n  #define E0_CS_PIN        44\n#endif\n</code></pre>\n\n<p>Which worked for the basic operation, however now that I've tried to add Autoleveling it stopped moving E1 motor. My configuration.h file does not have:<br>\n<code>#define EXTRUDER_USE_E1</code>\n apparently as its an older version also, just like RAMPS.h doesn't have those conditional statements.</p>\n"}]
['https://3dprinting.stackexchange.com/questions/5962', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/10566/']