Safely initialis all pins to input on startup.

Signed-off-by: David Hunt <dave@davidhunt.ie>