All pins set as inputs on startup and only changed to outputs when needed to
Merge branch 'master' of https://github.com/cymplecy/scratch_gpio

No idea why I'm doing this but computer said I had to