Skip to content

Commit 8d46843

Browse files
committed
lint
1 parent 470850c commit 8d46843

File tree

1 file changed

+5
-4
lines changed
  • CircuitPython_Knob_Sketcher/feather_sketcher

1 file changed

+5
-4
lines changed

CircuitPython_Knob_Sketcher/feather_sketcher/code.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def read_knobs(reads, delay):
9494
time.sleep(delay)
9595
avg_x /= reads
9696
avg_y /= reads
97-
x = map_range(avg_x, 0, 65535, 0, SKETCH_WIDTH - 1)
98-
y = map_range(avg_y, 0, 65535, 0, SKETCH_HEIGHT - 1)
99-
return int(x), int(y)
97+
xx = map_range(avg_x, 0, 65535, 0, SKETCH_WIDTH - 1)
98+
yy = map_range(avg_y, 0, 65535, 0, SKETCH_HEIGHT - 1)
99+
return int(xx), int(yy)
100100

101101
#-------
102102
# MAIN
@@ -113,4 +113,5 @@ def read_knobs(reads, delay):
113113
else:
114114
# PEN UP
115115
pen_palette[1] = PEN_UP_COLOR
116-
sketch_bitmap.fill(0)
116+
sketch_bitmap.fill(0)
117+

0 commit comments

Comments
 (0)