Skip to content

Commit f0d83f9

Browse files
authored
Merge branch 'master' into ble_vibe_bracelet_newColors
2 parents 40a9e63 + 460e837 commit f0d83f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_AudioSine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
length = SAMPLERATE // FREQUENCY
2525
sine_wave = array.array("H", [0] * length)
2626
for i in range(length):
27-
sine_wave[i] = int(math.sin(math.pi * 2 * i / 18) * (2 ** 15) + 2 ** 15)
27+
sine_wave[i] = int(math.sin(math.pi * 2 * i / length) * (2 ** 15) + 2 ** 15)
2828

2929
# Enable the speaker
3030
speaker_enable = digitalio.DigitalInOut(board.SPEAKER_ENABLE)

0 commit comments

Comments
 (0)