+
+ def __repr__(self):
+ import board
+ for key in dir(board):
+ if getattr(board, key) is self:
+ return "board.{}".format(key)
+ import microcontroller
+ for key in dir(microcontroller):
+ if getattr(microcontroller, key) is self:
+ return "microcontroller.{}".format(key)
+ return repr(self)
+