Rework pin config to use dictionary
Don't forget num