Skip to content

Commit b326392

Browse files
committed
Revert "Cleanup instrumentation"
This reverts commit cbb23cb.
1 parent cbb23cb commit b326392

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_turtle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def __init__(self, display=board.DISPLAY):
200200
def _drawturtle(self):
201201
self._turtle_sprite.x = int(self._x - 4)
202202
self._turtle_sprite.y = int(self._y - 4)
203+
#self._logger.debug("pos (%d, %d)", self._x, self._y)
203204

204205
############################################################################
205206
# Move and draw
@@ -263,6 +264,7 @@ def goto(self, x1, y1=None):
263264
y1 = self._h // 2 - y1
264265
x0 = self._x
265266
y0 = self._y
267+
self._logger.debug("* GoTo from (%d, %d) to (%d, %d)", x0, y0, x1, y1)
266268
if not self.isdown():
267269
self._x = x1 # woot, we just skip ahead
268270
self._y = y1
@@ -468,6 +470,7 @@ def dot(self, size=None, color=None):
468470
color = self._pencolor
469471
else:
470472
color = self._color_to_pencolor(color)
473+
self._logger.debug('dot(%d)', size)
471474
self._draw_disk(self._x - size, self._y - size, 2 * size + 1, 2 * size + 1, size, color)
472475
self._fg_sprite[0, 0] = 0
473476

0 commit comments

Comments
 (0)