关于wfapp的C#问题 [英] C# question about wfapp

查看:87
本文介绍了关于wfapp的C#问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想在visual C#中实现一个小项目(Window form App(.NET FRAMEWORK)。我  ;已经不得不用Arduino做了,现在我需要在这个Visual C#中实现相同的Programm。用Tennsy 3.2在Arduino中实现了它。 

< span lang ="EN-US">当您按下一个按钮进行电路时(我已经构建了一个带有Teensy 3.2和两个Pusbutton的电路),您可以在Gamecontroller中看到您按下了哪个按钮,例如按钮1给出1.

我需要你的解决方案,我如何在Visual C中做同样的事情#
(窗口形式应用程序(.NET FRAMEWORK)与我的Teensy 3.2

最诚挚的问候。

Lepro

code of project in Arduino programm:

void setup() {

  //serial.begin(9600);

  pinMode(0, INPUT_PULLUP);

  pinMode(1, INPUT_PULLUP);

  
 

}

 

void loop() {

  
 

  // read the digital inputs and set the buttons


  Joystick.button(1, digitalRead(0));

  Joystick.button(2, digitalRead(1));



  // a brief delay, so this runs 20 times per second

  delay(50);

}





推荐答案

你好Frage,

Hi Frage,

我不知道你所说的Teensy 3.2 是什么,我猜它是一个类似于USB接口的连接设备,如果你想用它做什么,我建议你连接供应商。

I'm not sure what is the Teensy 3.2 as you said, I guess it is a connected device similar to the USB interface, I suggest you to connect the supplier if you want to do something with it.

如果您想使用Windows窗体应用程序控制Arduino,请参阅以下文档和视频:

And if you want to control the Arduino with Windows Forms Application, please refer to the following document and videos:

使用Windows窗体应用程序控制Arduino

Arduino和Visual C# - 使用Windows窗体应用程序控制Arduino。

使用C#窗体应用程序控制您的Arduino。

注意:此响应包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,微软提醒您在从互联网上检索任何软件之前确保您完全了解风险。

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

希望这有帮助!

问候,

Stanly


这篇关于关于wfapp的C#问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆