nanoFramework.Hardware.Esp32.Rmt 2.0.7

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package nanoFramework.Hardware.Esp32.Rmt --version 2.0.7
NuGet\Install-Package nanoFramework.Hardware.Esp32.Rmt -Version 2.0.7
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.Hardware.Esp32.Rmt" Version="2.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.Hardware.Esp32.Rmt --version 2.0.7
#r "nuget: nanoFramework.Hardware.Esp32.Rmt, 2.0.7"
#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.Hardware.Esp32.Rmt as a Cake Addin
#addin nuget:?package=nanoFramework.Hardware.Esp32.Rmt&version=2.0.7

// Install nanoFramework.Hardware.Esp32.Rmt as a Cake Tool
#tool nuget:?package=nanoFramework.Hardware.Esp32.Rmt&version=2.0.7

Quality Gate Status Reliability Rating NuGet #yourfirstpr Discord

nanoFramework logo


Welcome to the .NET nanoFramework Hardware.Esp32.Rmt Library repository

RMT (Remote Control) is an ESP32 module driver that is, originally, intended to be used with infrared remote control signals. However, the module and APIs are generic enough that they can used to send/receive other types of signals.

Getting Started

Our samples repository contains commented code showcasing how to use the RMT module in ESP32 MCUs to control various types of devices using nanoFramework. The RMT samples can be found Here.

A detailed explanation about the RMT module can be found here.

Migrating from v1 to v2

There are breaking changes in the managed API surface. If you have existing code that depends on v1.x of this library you will need to refactor it so it works with the new API surface in v2.x.

The changes are mostly around how receive/transmit channels are initialized. The other APIs from v1.x remain as they are.

Please update the code as follows:

V1.x API Surface

// creating a transmit channel
var txChannel = new TransmitterChannel(TxPinNumber);
txChannel.ClockDivider = 80;
txChannel.CarrierEnabled = false;
txChannel.IdleLevel = false;
txChannel.AddCommand(new RmtCommand(20, true, 15, false));
// add more commands...

txChannel.Send(false);

// creating a receive channel
var rxChannel = new ReceiverChannel(RxPinNumber);
rxChannel.ClockDivider = 80; // 1us clock ( 80Mhz / 80 ) = 1Mhz
rxChannel.EnableFilter(true, 100); // filter out 100Us / noise 
rxChannel.SetIdleThresold(40000);  // 40ms based on 1us clock
rxChannel.ReceiveTimeout = new TimeSpan(0, 0, 0, 0, 60); 
rxChannel.Start(true);

In V2.x, the above code must be rewritten as:

var txChannelSettings = new TransmitChannelSettings(-1, TxChannelPinNumber)
{
  ClockDivider = 80,
  EnableCarrierWave = false,
  IdleLevel = false
};

var txChannel = new TransmitterChannel(txChannelSettings);
txChannel.AddCommand(new RmtCommand(20, true, 15, false));
// add more commands...

txChannel.Send(false);


var rxChannelSettings = new ReceiverChannelSettings(pinNumber: RxChannelPinNumber)
{
  EnableFilter = true,
  FilterThreshold = 100,
  IdleThreshold = 40_000,
  ReceiveTimeout = new TimeSpan(0, 0, 0, 0, 60)
};

using var rxChannel = new ReceiverChannel(rxChannelSettings);
rxChannel.Start(clearBuffer: true);

Build status

Component Build Status NuGet Package
nanoFramework.Hardware.Esp32.Rmt Build Status NuGet

Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.

Join our Discord community here.

Credits

The list of contributors to this project can be found at CONTRIBUTORS.

License

The nanoFramework Class Libraries are licensed under the MIT license.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

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 (6)

Showing the top 5 NuGet packages that depend on nanoFramework.Hardware.Esp32.Rmt:

Package Downloads
nanoFramework.Iot.Device.Ws28xx.Esp32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET nanoFramework binding Ws28xx (specific for ESP32 devices) for .NET nanoFramework C# projects.

nanoFramework.M5StickC The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the nanoFramework.M5StickC assembly for .NET nanoFramework C# projects.

nanoFramework.M5StickCPlus The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the nanoFramework.M5StickCPlus assembly for .NET nanoFramework C# projects.

nanoFramework.Iot.Device.Hcsr04.Esp32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Iot.Device.Hcsr04.Esp32 for .NET nanoFramework C# projects.

nanoFramework.Iot.Device.Dhtxx.Esp32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Iot.Device.Dhtxx.Esp32 for .NET nanoFramework C# projects. Only working with ESP32.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on nanoFramework.Hardware.Esp32.Rmt:

Repository Stars
nanoframework/Samples
🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours
nanoframework/nanoFramework.IoT.Device
📦 This repo includes .NET nanoFramework implementations for various sensors, chips, displays, hats and drivers
Version Downloads Last updated
2.0.7 3,995 11/9/2023
2.0.5 103 11/9/2023
2.0.1 17,423 2/10/2023
1.3.6 7,653 12/27/2022
1.3.3 12,840 10/24/2022
1.2.3.5 91,354 5/20/2022
1.2.2 35,895 3/29/2022
1.2.2-preview.12 124 3/29/2022
1.2.2-preview.10 267 3/18/2022
1.2.2-preview.9 222 3/14/2022
1.2.2-preview.8 347 2/18/2022
1.2.2-preview.6 484 1/28/2022
1.2.2-preview.5 213 1/21/2022
1.2.2-preview.3 255 12/29/2021
1.2.1 1,075 12/23/2021
1.2.1-preview.14 201 12/3/2021
1.2.1-preview.12 141 12/2/2021
1.2.1-preview.10 150 12/1/2021
1.2.1-preview.7 350 11/13/2021
1.2.1-preview.5 262 10/18/2021
1.2.0 870 7/15/2021
1.2.0-preview.6 187 7/14/2021
1.2.0-preview.4 167 7/14/2021
1.2.0-preview.2 202 6/20/2021
1.1.28 175 6/8/2021
1.1.26 206 6/7/2021
1.1.24 231 6/6/2021
1.1.22 213 5/31/2021
1.1.21 199 5/31/2021
1.1.20 206 5/31/2021
1.1.19 212 5/30/2021
1.1.18 234 5/20/2021
1.1.17 176 5/14/2021
1.1.16 167 5/12/2021
1.1.15 190 5/11/2021
1.1.5 213 3/3/2021
1.1.2 404 2/4/2021
1.0.24 176 2/4/2021
1.0.21 265 12/1/2020
1.0.19 270 10/21/2020
1.0.17 271 10/2/2020
1.0.15 832 10/1/2020
1.0.13 469 7/6/2020
1.0.11 263 9/28/2020
1.0.9 255 7/7/2020
1.0.7 329 7/7/2020
1.0.6 452 7/6/2020
1.0.4 468 7/6/2020
1.0.2 259 9/19/2020