changing to work with new pin API

don't merge until https://github.com/tessel/firmware/pull/122 lands