如何在VB.NET中点亮LED [英] How to light LED in VB.NET

查看:128
本文介绍了如何在VB.NET中点亮LED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的笔记本电脑上没有并行端口,但是我需要点亮LED.由于上述原因,我已经在编写代码,但无法对其进行测试.请给我一些帮助.谢谢,我将感谢您提供的所有帮助!

I don''t have Parallel port on my laptop but I need to light LEDs. I''m already doing the code but can''t test it due to the above reason. Kindly hand me some help with this. Thanks and I will appreciate all the help you would give!

推荐答案

这取决于您的操作系统.您可能会在这里并行端口中心-编程 [
It depends on your OS. You may find some useful info here Parallel Port Central - Programming[^].


您可以从不编写该代码开始.并行端口不用于驱动LED,如果您不知道自己在做什么,则可以将端口炸毁,这很坦白地说,您不知道.

从更容易被炸毁的艰苦奋斗开始,就像为这项工作设计的一样.

您可以检出
Phidg​​ets.com [ ^ ]的Phidg​​etsInterfaceKey(在I/O板下查看)

或者,如果您愿意构建一些硬件并教自己一些数字电子产品,请使用 Netduino [ Arduino [^ ].区别在于Netduino运行.NET Micro Framework,而Ardunio不运行.
You can start by not writing that code. Parallel ports are not for driving LED''s and you can blow the port up if you don''t know what you''re doing, which, let''s be honest here, you don''t.

Start with hardward that is more affordable to blow up, like something designed for the job.

You can check out Phidgets.com[^] for a PhidgetsInterfaceKey (look under I/O boards)

Or, if you''re so inclinde to build a little hardware and teach yourself some digital electronics, a Netduino[^], or Arduino[^]. The difference here is that a Netduino runs the .NET Micro Framework and the Ardunio doesn''t.


velleman K8055 USB接口卡随附示例VB.NET软件示例(以及其他一些示例)语言).
它相当便宜且坚固.还有VM167无缓冲版本.再次提供示例代码.

他们会为您提供数字,模拟,PWM I/O等.

作为记录,直到我得到K8055为止,我都使用并行端口进行所有操作,即使现在我仍然发出声音来点亮它的LED阵列.我滥用了我拥有多年的每台计算机上的端口,却从未损坏过它.
The velleman K8055 USB interface card comes with sample VB.NET software examples (and several other languages).
It''s fairly cheap and robust. There''s also the VM167 unbuffered version. Again, with sample code.

They''ll give you digital, analogue, PWM I/Os etc.

For the record though, until I got a K8055, I used the parallel port for everything and even now I still run a sound to light LED array from it. I''ve abused the port on every machine I''ve owned for many years and never damaged one.


这篇关于如何在VB.NET中点亮LED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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