How to Write Microcontroller Drivers Similar to C Using C#

Introduction

.NET nanoFramework Installation Guide

Materials Needed

ESP32 microcontroller (supports WiFi and Bluetooth), Android data cable (must support data transfer)

How to Write Microcontroller Drivers Similar to C Using C#

Note! Please install the ESP32 driver first (https://124.222.27.83/docs/docs/nanoframework/nanoInstall#注意请先安装esp32驱动程序)

ESP32 driver link (http://nanoframework.oss-cn-shenzhen.aliyuncs.com/MH-ET ESP32开发板资料.zip)

Installing .NET nanoFramework Firmware

Installation Tools

dotnet tool install -g nanoff

Flashing Firmware

nanoff --platform esp32 --serialport COM3 --update

Then prepare VS Code and VS 2022, this article will use VS 2022 for the tutorial.

Once ready, connect the ESP32 device to the computer (using Android cable).

Start setting up the ESP32 nanoFramework development environment.

After installation, open VS2022, click continue but no code is needed How to Write Microcontroller Drivers Similar to C Using C#

Click Manage Extensions

How to Write Microcontroller Drivers Similar to C Using C#

Search and install the nanoFramework extension, after installation, close the entire VS 2022.

How to Write Microcontroller Drivers Similar to C Using C#

After closing VS 2022, this installation extension interface will pop up, click install.

How to Write Microcontroller Drivers Similar to C Using C#

Long wait for installation

How to Write Microcontroller Drivers Similar to C Using C#

After installation, reopen VS 2022.

Then click Create New Project

How to Write Microcontroller Drivers Similar to C Using C#

Search for nanoFramework, then click the first one and click Next.

How to Write Microcontroller Drivers Similar to C Using C#

Create a project Demo example and click Create.

How to Write Microcontroller Drivers Similar to C Using C#

Click View => Other Windows => Device Explorer.

Then close the settings, we go to VS Code to find the project path just created by VS 2022 and open it.

Then open VS 2022, at this point we can see the device and then click Run.

How to Write Microcontroller Drivers Similar to C Using C#

Alright, the run is complete.

How to Write Microcontroller Drivers Similar to C Using C#

Source:hejiale010426

Link: cnblogs.com/hejiale010426/p/16578314.html

Leave a Comment

Your email address will not be published. Required fields are marked *