Excellent video explaining how it works by Brian Lough

Python code to make your pinouts by Instant Arcade