nanoFramework.Iot.Device.Yx5300 1.0.278-preview.64

Prefix Reserved
This is a prerelease version of nanoFramework.Iot.Device.Yx5300.
There is a newer version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Yx5300 --version 1.0.278-preview.64                
NuGet\Install-Package nanoFramework.Iot.Device.Yx5300 -Version 1.0.278-preview.64                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Yx5300" Version="1.0.278-preview.64" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.Iot.Device.Yx5300 --version 1.0.278-preview.64                
#r "nuget: nanoFramework.Iot.Device.Yx5300, 1.0.278-preview.64"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install nanoFramework.Iot.Device.Yx5300 as a Cake Addin
#addin nuget:?package=nanoFramework.Iot.Device.Yx5300&version=1.0.278-preview.64&prerelease

// Install nanoFramework.Iot.Device.Yx5300 as a Cake Tool
#tool nuget:?package=nanoFramework.Iot.Device.Yx5300&version=1.0.278-preview.64&prerelease                

YX5200/YX5300 - MP3 Player

Use this driver to control the Keyestudio YX5200-24SS MP3/Jaycar XC3748 Music Player Module

This MP3 module is a MP3/WAV/WMA music player. It uses YX5200/YX5300 at its core and it plays files from an integrated SD card reader. It is connected with Serial port.

Documentation

See this article for a good oversight.

Usage

using IoT.Device.Yx5300;
using nanoFramework.Hardware.Esp32;
using System.Threading;

const int FolderNumber = 1;
const int FileNumber = 1;
Yx5300 mp3Player;

// Set GPIO functions for COM2 (this is UART2 on ESP32)
Configuration.SetPinFunction(Gpio.IO17, DeviceFunction.COM2_TX);
Configuration.SetPinFunction(Gpio.IO16, DeviceFunction.COM2_RX);

// Open COM2 and instantiate player
mp3Player = new Yx5300("COM2");

// Start player and play some files
Thread.Sleep(1000);
mp3Player.Volume(Yx5300.MaxVolume / 2);

// Repeat a folder
mp3Player.PlayFolderRepeat(FolderNumber);
mp3Player.Play();

// Repeat a file
mp3Player.PlayTrackRepeat(FileNumber);
mp3Player.Play();

Thread.Sleep(Timeout.Infinite);
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.790 78 2/5/2025
1.2.772 82 2/4/2025
1.2.755 73 1/31/2025
1.2.737 72 1/13/2025
1.2.729 64 1/8/2025
1.2.696 90 12/16/2024
1.2.673 101 10/23/2024
1.2.651 98 9/27/2024
1.2.631 115 8/28/2024
1.2.570 119 6/14/2024
1.2.548 102 5/15/2024
1.2.532 137 4/13/2024
1.2.436 230 11/10/2023
1.2.329 166 5/26/2023
1.2.313 143 5/12/2023
1.2.297 153 5/3/2023
1.2.203 315 12/28/2022
1.2.153 364 11/5/2022
1.2.141 398 10/25/2022
1.2.128 398 10/22/2022
1.2.117 421 10/10/2022
1.2.114 387 10/8/2022
1.2.89 417 9/16/2022
1.2.35 431 8/4/2022
1.2.16 456 7/25/2022
1.1.113.2032 426 6/23/2022
1.1.109.32999 423 6/16/2022
1.1.97.17326 451 6/13/2022
1.1.67.25390 433 5/27/2022
1.1.7 477 4/18/2022
1.1.1 464 4/14/2022
1.0.300 440 4/1/2022
1.0.278-preview.124 123 3/25/2022
1.0.278-preview.118 117 3/24/2022
1.0.278-preview.101 125 3/11/2022
1.0.278-preview.84 132 2/25/2022
1.0.278-preview.64 122 2/9/2022
1.0.278-preview.61 136 2/5/2022
1.0.278-preview.59 140 2/4/2022
1.0.278-preview.31 136 1/27/2022
1.0.278-preview.14 129 1/21/2022
1.0.278-preview.1 131 1/14/2022
1.0.272 170 1/10/2022
1.0.259 330 12/9/2021
1.0.218 202 10/18/2021
1.0.193 174 9/30/2021
1.0.191 180 9/29/2021
1.0.155 170 8/31/2021
1.0.153 173 8/14/2021
1.0.151 184 8/6/2021
1.0.146 174 7/22/2021
1.0.144 202 7/21/2021
1.0.136 251 7/17/2021
1.0.135 177 7/16/2021
1.0.134 184 7/15/2021
1.0.133 199 7/14/2021
1.0.127 184 7/5/2021
1.0.122 221 6/30/2021
1.0.121 210 6/29/2021
1.0.119 241 6/28/2021
1.0.117 194 6/17/2021
1.0.115 204 6/16/2021