Answer the question
In order to leave comments, you need to log in
How to connect a button to a computer?
I want to make a button on a wire (~3m) connected to a computer, for example via USB. Previously, there were RS-232 and LPT - everything was simple there. How to do it in today's realities? I can hold a soldering iron in my hands. Yes, and how to interrogate this button (or wait for a call) from the code in C, Java or Python?
Answer the question
In order to leave comments, you need to log in
Through Arduino, as an option.
Although I do not like this toy, it is easier not to think of such goals. It costs a penny, there are tons of examples on the net.
Through any microcontroller (the most primitive option is Arduino) and work with it via UART (RX / TX) as with a regular COM port.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question