Skip to content

Commit

Permalink
Update MicroPython
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Aug 21, 2024
1 parent 7d84c58 commit 677585f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/examples/test_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@
while button_a.is_pressed():
sleep(50)
display.clear()
# amplify volume
GAIN = 2
#my_recording *= GAIN
for i in range(len(my_track)):
my_track[i] = max(0, min(128 + GAIN * (my_track[i] - 128), 255))
my_track *= 2 # amplify volume
if button_b.is_pressed():
audio.play(my_track, wait=False)
level = 0
Expand Down

0 comments on commit 677585f

Please sign in to comment.