changed to work with new pin api

Just a heads up, when https://github.com/tessel/firmware/pull/122 lands it'll change the tessel.port.digital pins from being 1 indexed to 0 indexed.