USB port to detect "close" or "open" switch -


i need make program play sound press push button switch. idea use usb port, , if short 2 wires (like example data+ , data-), program play sound repeatedly while 2 wires shorted. idea possible , simple do? can please me using vb? lot help.

no, not practical. usb ports not have feature far know. there plenty of small, cheap usb microcontroller boards task though.

for example, a-star 32u4 micro, program using arduino ide, , make send message on virtual com port (which accessed serial object) when button pressed , message when released. in visual basc, use serialport class connect a-star's com port , listen message.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -