Demo application that cuts a parameterized star on a USB attached CNC router.
To run this code you will need to add the Universal GCode Sender library: https://github.com/winder/Universal-G-Code-Sender
For more info, see the Java Magazine article on Raspberry Pi and CNC in the September/Octoboer 2016 issue.