Skip to content

Commit 3ed0272

Browse files
committed
Update code.py
1 parent 9e8eab2 commit 3ed0272

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Duplo_Color_Boombox/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def find_closest_brick(reading, dictionary, max_distance=50000):
116116

117117
while True:
118118

119-
# negate the position to make clockwise rotation positive
119+
# make clockwise rotation positive
120120
position = -encoder.position
121121

122122
if position != last_position:
@@ -128,7 +128,7 @@ def find_closest_brick(reading, dictionary, max_distance=50000):
128128
#increase volume
129129
volume = volume + 0.05
130130
volume = min(volume, 1)
131-
# set the audio volume
131+
# set the audio volume
132132
mixer.voice[0].level = volume
133133
print(volume)
134134
last_position = position

0 commit comments

Comments
 (0)