I have added a relay to p2_11 which turns on with logic zero to optocoupler input.
I added this line to main.c in bootlader
GPIO_init(P2_11); GPIO_output(P2_11); GPIO_write(P2_11, 1);
to turn off the relay when bootloader starts and not turn on relay accidentally if smoothie fails to start
but i dont have any experience in compiling the modified code
need help
Imported from wikidot