Skip to content

Commit 677585f

Browse files
committedAug 21, 2024
Update MicroPython
1 parent 7d84c58 commit 677585f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
 

‎src/examples/test_record.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@
3535
while button_a.is_pressed():
3636
sleep(50)
3737
display.clear()
38-
# amplify volume
39-
GAIN = 2
40-
#my_recording *= GAIN
41-
for i in range(len(my_track)):
42-
my_track[i] = max(0, min(128 + GAIN * (my_track[i] - 128), 255))
38+
my_track *= 2 # amplify volume
4339
if button_b.is_pressed():
4440
audio.play(my_track, wait=False)
4541
level = 0

0 commit comments

Comments
 (0)