使用微控制器开发基于数字LED的调光器的GUI [英] Development of GUI for a digital LED-based dimmer using microcontroller

查看:82
本文介绍了使用微控制器开发基于数字LED的调光器的GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试为我的项目开发Windows窗体GUI。

但是我发现很难连续用微控制器传达我的GUI。

我现在尝试与Hyperterminal进行串行通信。

请帮助一些示例/示例。

Hi,

I am trying to develop a Windows Form GUI for my project.
However I am finding it hard to serially communicate my GUI with the microcontroller.
I have tried serial communications with Hyperterminal as of now.
Please help with some samples/examples.

推荐答案

我不知道我明白你的问题在哪里/你的问题



如果你能用Hyperterm成功地与微控制器通信,那么,在你的GUI应用程序中,你当然需要做的就是



a)打开一个串行连接 - 见这里

http://msdn.microsoft.com/en-au/library /system.io.ports.serialport(v=vs.110).aspx [ ^ ]



b)设置序列c对各种速度,位,检查参数的影响



c)gui上的设置,使用串行连接传输

d)从串口读取结果



(a)部分或多或少取决于你的串口连接方式 - 你可能正在通过USB进行通话例如-serial bridge



使用Hyperterm是一个不错的选择 - 使用微控制器的文档应该为您提供(b)的参数,以及您的手动测试和(再次)微控制器docco将为您提供您需要在点(c)写入的数据



如果是我的话我甚至不会以GUI开头 - 我从Hyperterm转到控制台模式原型再到GUI



''g''
Im not sure I understand where/what your problem is

If you can communicate successfully to the micro-controller with Hyperterm, then, in your GUI app, surely all you need to do is

a) open up a serial connection - see here
http://msdn.microsoft.com/en-au/library/system.io.ports.serialport(v=vs.110).aspx[^]

b) set the serial connection to various speed, bit, check parameters

c) for a ''setting'' on the gui, transmit that using the serial connection
d) read the result back from the serial port

Part (a) depends more or less on how your serial connection is plugged in - you may be talking through a USB-serial bridge for example

Using Hyperterm is a good option - that with the documentation for the microcontroller should give you the parameters for (b), and your manual testing and (again) the microcontroller docco will give you the data you need to write at point (c)

I wouldnt even start with a GUI if it was me - I''d go from Hyperterm to a console mode prototype then to a GUI

''g''


这篇关于使用微控制器开发基于数字LED的调光器的GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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