nanoFramework.Iot.Device.Yx5300 1.2.153

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
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.2.153
NuGet\Install-Package nanoFramework.Iot.Device.Yx5300 -Version 1.2.153
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.153" />
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.2.153
#r "nuget: nanoFramework.Iot.Device.Yx5300, 1.2.153"
#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.2.153

// Install nanoFramework.Iot.Device.Yx5300 as a Cake Tool
#tool nuget:?package=nanoFramework.Iot.Device.Yx5300&version=1.2.153

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.532 79 4/13/2024
1.2.436 198 11/10/2023
1.2.329 129 5/26/2023
1.2.313 119 5/12/2023
1.2.297 134 5/3/2023
1.2.203 281 12/28/2022
1.2.153 329 11/5/2022
1.2.141 362 10/25/2022
1.2.128 365 10/22/2022
1.2.117 387 10/10/2022
1.2.114 348 10/8/2022
1.2.89 378 9/16/2022
1.2.35 394 8/4/2022
1.2.16 418 7/25/2022
1.1.113.2032 390 6/23/2022
1.1.109.32999 401 6/16/2022
1.1.97.17326 413 6/13/2022
1.1.67.25390 411 5/27/2022
1.1.7 439 4/18/2022
1.1.1 429 4/14/2022
1.0.300 404 4/1/2022
1.0.278-preview.124 107 3/25/2022
1.0.278-preview.118 101 3/24/2022
1.0.278-preview.101 105 3/11/2022
1.0.278-preview.84 115 2/25/2022
1.0.278-preview.64 106 2/9/2022
1.0.278-preview.61 120 2/5/2022
1.0.278-preview.59 123 2/4/2022
1.0.278-preview.31 122 1/27/2022
1.0.278-preview.14 114 1/21/2022
1.0.278-preview.1 118 1/14/2022
1.0.272 148 1/10/2022
1.0.259 309 12/9/2021
1.0.218 180 10/18/2021
1.0.193 152 9/30/2021
1.0.191 160 9/29/2021
1.0.155 148 8/31/2021
1.0.153 149 8/14/2021
1.0.151 160 8/6/2021
1.0.146 149 7/22/2021
1.0.144 181 7/21/2021
1.0.136 226 7/17/2021
1.0.135 154 7/16/2021
1.0.134 162 7/15/2021
1.0.133 176 7/14/2021
1.0.127 163 7/5/2021
1.0.122 198 6/30/2021
1.0.121 186 6/29/2021
1.0.119 216 6/28/2021
1.0.117 173 6/17/2021
1.0.115 183 6/16/2021