eliminated use of memoize in favor of a gpio pin data structure