Add repr to pi class

This commit is contained in:
Ben Nuttall 2018-10-08 11:20:13 +01:00
parent 934874be2f
commit 559bb73802
1 changed files with 53 additions and 50 deletions

View File

@ -5090,6 +5090,9 @@ class pi():
print(_except_3)
print(_except_z)
def __repr__(self):
return "<pipio.pi host={} port={}>".format(self._host, self._port)
def stop(self):
"""Release pigpio resources.