Code for my Arduino Uno: it pulls 3D printing filament onto a spool (with gears, switches and everything π)