Turn on a LED while extruding (only) November 09, 2015 05:22PM |
Registered: 9 years ago Posts: 3 |
Re: Turn on a LED while extruding (only) November 10, 2015 05:34AM |
Registered: 9 years ago Posts: 5,232 |
If( dir== true && step==true) digitalWrite(59, HIGH); else digitalWrite(59, Low);
Re: Turn on a LED while extruding (only) November 10, 2015 07:46AM |
Registered: 10 years ago Posts: 590 |
Re: Turn on a LED while extruding (only) November 10, 2015 05:42PM |
Registered: 9 years ago Posts: 3 |
Quote
#ifndef ADVANCE
if ((out_bits & (1<<E_AXIS)) != 0) { // -direction
REV_E_DIR();
count_direction[E_AXIS]=-1;
digitalWrite(59, LOW); //------------------------------------ Testing LED here ------------------------------------
}
else { // +direction
NORM_E_DIR();
count_direction[E_AXIS]=1;
digitalWrite(59, HIGH); //------------------------------------ Testing LED here ------------------------------------
}
#endif //!ADVANCE
Re: Turn on a LED while extruding (only) November 11, 2015 03:20PM |
Registered: 9 years ago Posts: 3 |
Quote
if (target[E_AXIS]>position[E_AXIS]) //--------------------------------Test LED--------------------------------
{
digitalWrite(59, HIGH);
}
else
{
digitalWrite(59, LOW);
}
#ifdef PREVENT_DANGEROUS_EXTRUDE