Welcome! Log In Create A New Profile

Advanced

I/O for led

Posted by 19roland70 
I/O for led
February 25, 2016 05:15PM
I want to use a led for temp indicator.
Now I see this in the Marlin software:
// Temperature status LEDs that display the hotend and bet temperature.  
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
// Otherwise the RED led is on. There is 1C hysteresis.
//#define TEMP_STAT_LEDS
But which I/O ports must I use and how must I connect the led
Re: I/O for led
February 25, 2016 06:19PM
pins are

STAT_LED_RED
STAT_LED_BLUE

Not defined in ramps, but is in pins_AZTEEG_X3, pins_AZTEEG_X3_PRO.h, pins_PRINTRBOARD.h and pins_RAMBO.h

So pick some free pins and add the above definitions into pins_RAMPS_13.h in correct section for your configuration

eg

#if ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 12 //Non-FastIO
#define STAT_LED_BLUE 10 //Non-FastIO
#endif
Sorry, only registered users may post in this forum.

Click here to login