lint
This commit is contained in:
parent
470850c934
commit
8d46843d88
1 changed files with 5 additions and 4 deletions
|
|
@ -94,9 +94,9 @@ def read_knobs(reads, delay):
|
|||
time.sleep(delay)
|
||||
avg_x /= reads
|
||||
avg_y /= reads
|
||||
x = map_range(avg_x, 0, 65535, 0, SKETCH_WIDTH - 1)
|
||||
y = map_range(avg_y, 0, 65535, 0, SKETCH_HEIGHT - 1)
|
||||
return int(x), int(y)
|
||||
xx = map_range(avg_x, 0, 65535, 0, SKETCH_WIDTH - 1)
|
||||
yy = map_range(avg_y, 0, 65535, 0, SKETCH_HEIGHT - 1)
|
||||
return int(xx), int(yy)
|
||||
|
||||
#-------
|
||||
# MAIN
|
||||
|
|
@ -113,4 +113,5 @@ while True:
|
|||
else:
|
||||
# PEN UP
|
||||
pen_palette[1] = PEN_UP_COLOR
|
||||
sketch_bitmap.fill(0)
|
||||
sketch_bitmap.fill(0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue