Remove all the remaining pin.address stuff

... again?
This commit is contained in:
Dave Jones
2017-07-14 16:11:40 +01:00
parent a0d784082d
commit b462b5f84a
3 changed files with 7 additions and 7 deletions

View File

@@ -238,11 +238,11 @@ class PiPin(Pin):
self._when_changed = None
self._number = number
try:
factory.pi_info.physical_pin('GPIO%d' % self.number)
factory.pi_info.physical_pin(repr(self))
except PinNoPins:
warnings.warn(
PinNonPhysical(
'no physical pins exist for GPIO%d' % self.number))
'no physical pins exist for %s' % repr(self)))
@property
def number(self):