Music Player Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Music Player Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld

This shield helps you play, pause, seek and stop music from your phone. Learn more from the examples page.

This shield is one of the special shields. Special shields allows your Arduino board to use some capabilities your smartphone can do, like playing music, taking a picture, getting notifications, accessing the clock data and using the touch screen for various functions. Learn more from the special shields tutorial.

Music player library turns your smartphone to an MP3 player where you can control it using your Arduino board.

Adding #define CUSTOM_SETTINGS along with #define INCLUDE_MUSIC_PLAYER_SHIELD is a key that will let you unlock the Music Player shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.

“There are permissions to be granted by Android M users before they can use the Music Player shield please make sure to grant the permissions or else it may affect the application’s performance.”

Stops the track.

SYNTAX

MusicPlayer.stop( );

RETURNS

None.

PARAMETERS

None.

USAGE

MusicPlayer.stop();

Plays the track.

SYNTAX

MusicPlayer.play( );

RETURNS

None.

PARAMETERS

None.

USAGE

MusicPlayer.play();

Pauses the track.

SYNTAX

MusicPlayer.pause( );

RETURNS

None.

PARAMETERS

None.

USAGE

MusicPlayer.pause();

Plays next track.

SYNTAX

MusicPlayer.next( );

RETURNS

None.

PARAMETERS

None.

USAGE

MusicPlayer.next();

Plays previous track.

SYNTAX

MusicPlayer.previous( );

RETURNS

None.

PARAMETERS

None.

USAGE

MusicPlayer.previous();

Seeks the track forward a certain period given.

SYNTAX

MusicPlayer.seekForward(seekingPercentagePeriod from 0 to 100);

RETURNS

None.

PARAMETERS

Takes seeking value from 0 to 100.

USAGE

MusicPlayer.seekForward(50);

Seeks the track backward a certain period given.

SYNTAX

MusicPlayer.seekBackward(seekingPercentagePeriod from 0 to 100);

RETURNS

None.

PARAMETERS

Takes seeking value from 0 to 100.

USAGE

MusicPlayer.seekBackward(50);

Sets the volume of the device.

SYNTAX

MusicPlayer.setVolume(volumeLevel form 0 to 10);

RETURNS

None.

PARAMETERS

Takes volume value from 0 to 10.

USAGE

MusicPlayer.setVolume(8);