简体   繁体   中英

Is it possible to embed c# into a microcontroller

I need to switch off the light from a command from the pc. Is this possible using c#?

Does microcontroller recognize c# code?

如果您正在寻找一款, Netduino是一款类似 Arduino 的板,集成了 .NET Micro Framework 支持,绝对可以满足您的需求。

According to the way you asked the question, it seams that you are not much familiar with writing microcontrollers software. Although .NET Micro Framework exists for them and C# is supported, the general concept of microcontroller programming is quite different compared to desktop application programming. Unless you are willing to spend some time to study microcontrollers, I would recommend you to use some USB relay board instead and control relay directly from your desktop C# application where you feel like home.

You can take a look at this board which has C# examples, or take a look at this SOF topic where similar topic was discussed.

您可以通过按钮事件从 c 尖向端口(例如:serial.port)发送一些事件,但您必须使用:使用 System.IO.Ports 这是在使用例如 mikroC 或在 c 语言中进行实际工作编程后应用的任何其他

这可能是您正在寻找的: http//www.microsoft.com/en-us/netmf/default.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM