diff --git a/examples/fruitjam_headphone.py b/examples/fruitjam_headphone.py index 4773c28..0c3fb51 100644 --- a/examples/fruitjam_headphone.py +++ b/examples/fruitjam_headphone.py @@ -7,7 +7,7 @@ pobj = adafruit_fruitjam.peripherals.Peripherals(audio_output="headphone") -FILES = ["beep.wav", "dip.wav", "rise.wav"] +FILES = ["wav/beep.wav", "wav/dip.wav", "wav/rise.wav"] VOLUMES = [0.25, 0.35, 0.50, 0.55, 0.60] while True: diff --git a/examples/fruitjam_peripherals.py b/examples/fruitjam_peripherals.py index f22dbf8..4decfc5 100644 --- a/examples/fruitjam_peripherals.py +++ b/examples/fruitjam_peripherals.py @@ -7,18 +7,18 @@ import supervisor from audiocore import WaveFile -from adafruit_fruitjam import FruitJam +from adafruit_fruitjam.peripherals import Peripherals colors = [0xFF00FF, 0xFFFF00, 0x00FF00] -fruitjam = FruitJam() +fruitjam = Peripherals() fruitjam.neopixels.brightness = 0.1 fruitjam.neopixels.fill(0xFF00FF) time.sleep(2) fruitjam.neopixels.fill(0x000000) - -wave_file = open("/boot_animation/ada_fruitjam_boot_jingle.wav", "rb") +fruitjam.volume = 0.65 +wave_file = open("/wav/ada_fruitjam_boot_jingle.wav", "rb") wave = WaveFile(wave_file) fruitjam.audio.play(wave) diff --git a/examples/fruitjam_speaker.py b/examples/fruitjam_speaker.py index 34bbfc3..e4cb1b3 100644 --- a/examples/fruitjam_speaker.py +++ b/examples/fruitjam_speaker.py @@ -7,7 +7,7 @@ pobj = adafruit_fruitjam.peripherals.Peripherals(audio_output="speaker") -FILES = ["beep.wav", "dip.wav", "rise.wav"] +FILES = ["wav/beep.wav", "wav/dip.wav", "wav/rise.wav"] VOLUMES = [0.25, 0.35, 0.50, 0.55, 0.60] while True: diff --git a/examples/fruitjam_synthio_speaker.py b/examples/fruitjam_synthio_headphone.py similarity index 100% rename from examples/fruitjam_synthio_speaker.py rename to examples/fruitjam_synthio_headphone.py diff --git a/examples/wav/ada_fruitjam_boot_jingle.wav b/examples/wav/ada_fruitjam_boot_jingle.wav new file mode 100644 index 0000000..9ce581c Binary files /dev/null and b/examples/wav/ada_fruitjam_boot_jingle.wav differ diff --git a/examples/wav/ada_fruitjam_boot_jingle.wav.license b/examples/wav/ada_fruitjam_boot_jingle.wav.license new file mode 100644 index 0000000..e840764 --- /dev/null +++ b/examples/wav/ada_fruitjam_boot_jingle.wav.license @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 Adafruit Industries +# +# SPDX-License-Identifier: CC-BY-4.0