Welcome! Log In Create A New Profile

Advanced

Invert hot bed

Posted by Kverb 
Invert hot bed
December 19, 2015 09:19AM
Hi, I wanted to control my hotbed with a mosfet. Turns out the ebay seller sent me p-types instead of n-types, so the controls are inverted. Is it possible to invert the hot bed in marlin so that I don't have to change the hardware?
Re: Invert hot bed
December 24, 2015 07:28PM
In Repetier I had to add my own code to do that, by messing with HAL.cpp:

if((pwm_pos_set[NUM_EXTRUDER] = pwm_pos[NUM_EXTRUDER])>0) WRITE(HEATED_BED_HEATER_PIN,!D8_INVERTED);

if(pwm_pos_set[NUM_EXTRUDER] == pwm_count_heater && pwm_pos_set[NUM_EXTRUDER]!=HEATER_PWM_MASK) WRITE(HEATED_BED_HEATER_PIN,D8_INVERTED);
Sorry, only registered users may post in this forum.

Click here to login