如何使用VB6通过USB LPT连接LED灯 [英] how to connect LED light through USB LPT using VB6

查看:93
本文介绍了如何使用VB6通过USB LPT连接LED灯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请让我知道帮助!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!

解决方案

无需使用任何语言-引脚1为+ 5V,引脚4为Gnd.
通过一个限流电阻将LED正确地连接到这些引脚(可能取决于470R至10K,具体取决于LED),并且该LED会亮起.

如果要以编程方式控制其开/关状态,则可能需要基于微控制器构建电路,该微控制器具有嵌入的合适USB堆栈软件和PC上安装的驱动程序. LED控制IMO的过度杀伤.用我的笔记本电脑,但没有给我usbLPT地址,我需要地址!!!


please i want to know help !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

解决方案

No need to use any language - pin 1 is +5V, pin 4 is Gnd.
Connect you LED the correct way round to these pins via a current limiting resistor (probably 470R thru 10K depending on the LED) and it should illuminate.

If you want to control it''s on/off state programatically you will probably need to build a circuit based around a microcontroller with suitable USB stack software embedded and driver installed on the PC. Overkill for LED control IMO.


you didnt get my point i already connect LED to my laptop and its on but i want to turn on/off using vb6 but the problem is that i connected usbLPT with my laptop and its not giving me address of usbLPT i need address!!


这篇关于如何使用VB6通过USB LPT连接LED灯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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