added location argument and attribute to Pin and DigitalPin