Pwdr / Pwdr-Model-0.1

A powder substrate rapid prototyping machine
131 stars 68 forks source link

Temporary pause button for pwdr #31

Open columbus1231 opened 10 years ago

columbus1231 commented 10 years ago

This is the code I added to the pwdr firmware so that I would be able to use a switch to pause the printer while printing temporarily and after I hold down (toggle) the switch. Once I release the switch, the printer continues printing the work piece from where it left off. This allows one to make modifications in the middle of a printing job to their work piece. Switch terminal on one side is on pin 5 and ground and the other is on 5v supply.

Pwdr commented 10 years ago

Please call the button not switchPin but pauseButtonPin.

And also change the triple equal for a double equal sign (while (digitalRead(switchPin) == LOW))