nanoFramework.Iot.Device.Yx5300 1.2.880

Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Yx5300 --version 1.2.880
                    
NuGet\Install-Package nanoFramework.Iot.Device.Yx5300 -Version 1.2.880
                    
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.2.880" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Yx5300" Version="1.2.880" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Yx5300" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Yx5300 --version 1.2.880
                    
#r "nuget: nanoFramework.Iot.Device.Yx5300, 1.2.880"
                    
#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.
#:package nanoFramework.Iot.Device.Yx5300@1.2.880
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Yx5300&version=1.2.880
                    
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Yx5300&version=1.2.880
                    
Install as a Cake Tool

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.880 182 4/24/2025
1.2.864 189 4/2/2025
1.2.852 196 3/11/2025
1.2.838 147 3/3/2025
1.2.822 146 2/26/2025
1.2.790 149 2/5/2025
1.2.772 150 2/4/2025
1.2.755 140 1/31/2025
1.2.737 132 1/13/2025
1.2.729 125 1/8/2025
1.2.696 137 12/16/2024
1.2.673 148 10/23/2024
1.2.651 142 9/27/2024
1.2.631 158 8/28/2024
1.2.570 162 6/14/2024
1.2.548 143 5/15/2024
1.2.532 176 4/13/2024
1.2.436 255 11/10/2023
1.2.329 214 5/26/2023
1.2.313 197 5/12/2023
1.2.297 205 5/3/2023
1.2.203 369 12/28/2022
1.2.153 419 11/5/2022
1.2.141 452 10/25/2022
1.2.128 453 10/22/2022
1.2.117 478 10/10/2022
1.2.114 441 10/8/2022
1.2.89 472 9/16/2022
1.2.35 493 8/4/2022
1.2.16 517 7/25/2022
1.1.113.2032 489 6/23/2022
1.1.109.32999 484 6/16/2022
1.1.97.17326 516 6/13/2022
1.1.67.25390 498 5/27/2022
1.1.7 545 4/18/2022
1.1.1 530 4/14/2022
1.0.300 508 4/1/2022
1.0.278-preview.124 192 3/25/2022
1.0.278-preview.118 183 3/24/2022
1.0.278-preview.101 197 3/11/2022
1.0.278-preview.84 200 2/25/2022
1.0.278-preview.64 193 2/9/2022
1.0.278-preview.61 210 2/5/2022
1.0.278-preview.59 211 2/4/2022
1.0.278-preview.31 207 1/27/2022
1.0.278-preview.14 201 1/21/2022
1.0.278-preview.1 201 1/14/2022
1.0.272 241 1/10/2022
1.0.259 401 12/9/2021
1.0.218 275 10/18/2021
1.0.193 248 9/30/2021
1.0.191 255 9/29/2021
1.0.155 245 8/31/2021
1.0.153 248 8/14/2021
1.0.151 257 8/6/2021
1.0.146 245 7/22/2021
1.0.144 273 7/21/2021
1.0.136 323 7/17/2021
1.0.135 248 7/16/2021
1.0.134 256 7/15/2021
1.0.133 271 7/14/2021
1.0.127 255 7/5/2021
1.0.122 292 6/30/2021
1.0.121 281 6/29/2021
1.0.119 315 6/28/2021
1.0.117 265 6/17/2021
1.0.115 276 6/16/2021