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 the Firmware

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

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

After preparing, connect the ESP32 device to the computer (using the Android cable).

Start setting up the ESP32 nanoFramework development environment.

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

Click on Manage Extensions

How to Write Microcontroller Drivers Similar to C Using C#

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

How to Write Microcontroller Drivers Similar to C Using C#

After closing VS2022, this installation extension interface pops 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 is complete, reopen VS2022.

Then click on Create New Project

How to Write Microcontroller Drivers Similar to C Using C#

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

How to Write Microcontroller Drivers Similar to C Using C#

Create Project Demo Example and click Create.

How to Write Microcontroller Drivers Similar to C Using C#

Click View => Other Windows => Device Explorer in order.

Then close the settings and go to VS Code to find the project path created by VS2022 and open it.

Then open VS2022, at this point we can see the device and 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

Copyright Notice: This article is sourced from user collection or user-provided material, for learning and exchange purposes only. If there is any infringement, please inform the moderator or leave a message, and this public account will delete it immediately.

加入群学习交流加 : mm1552923

如果喜欢我的文章,那么
“在看”和转发是对我最大的支持!

Leave a Comment

×