I suggest running in turbo mode This was a quick test for a limiting system for a 3D printer. Most 3D printers have a square print bed, and as such, the firmware is designed to not let the print head go outside a defined rectangle. My 3D printer has a circular build platform due to the way in which it works (it's a delta printer), but the firmware I am using still limits to a rectangle. This project was a test of a small bit of code to limit to a circle instead. I prototyped it in scratch because it is quick and easy and if I put it straight into the printer firmware, there is a good chance I could damage the printer. it worked perfectly. Note: there are some bugs in this version that I fixed in the version on the printer, but didn't bother putting them back into this prototype. If anyone would like the fixes put back into this project, just say so. I would also be more than willing to give the code for the printer to anyone interested.