Struct qwiic_mp3_trigger::QwiicMP3Trigger[][src]

pub struct QwiicMP3Trigger<T: I2CDevice + Sized> { /* fields omitted */ }

This object communicates with a Sparkfun Qwiic MP3 Trigger over i2c.

Methods

impl<T> QwiicMP3Trigger<T> where
    T: I2CDevice + Sized
[src]

Constructs a new QwiicMP3Trigger<T>.

Tests communication.

Returns the number of songs on the SD card, including trigger songs.

Returns the version of the Qwiic MP3 Trigger firmware.

Plays a track based on the sorting rules of the WT2003S.

Plays a track based on the filename. 3 will play a file matching F003***.mp3.

Plays the next track based on the sorting rules of the WT2003S.

Plays the previous track based on the sorting rules of the WT2003S.

Stops playing. Note that this may result in buzzing because the audio output it not disabled. You may wish to play a long silence instead.

Pauses playing. Note that this may result in buzzing because the audio output it not disabled. You may wish to play a long silence instead.

Returns the play status.

Checks the status of the SD card.

Returns the name of the currently playing song. May return unable to parse.

Set the equalizer mode.

Set the volume between 0 (off) to 31 (max).

Set the i2c address of the device.

Trait Implementations

impl<T: Debug + I2CDevice + Sized> Debug for QwiicMP3Trigger<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for QwiicMP3Trigger<T> where
    T: Send

impl<T> Sync for QwiicMP3Trigger<T> where
    T: Sync