My idea seems easy:
I connect a button with arduino, then write some code and upload it to arduino. Then I open the notepad(or any other editor) on my computer. When I press the button, there will be a character "A" displayed in the notepad.
I have tried with my Arduino uno, and use Serial.write/print
function to send an A
to serial port 9600
, but it seems the character A
only shows in the serial monitor GUI.
My question is:
- Is "Arduino uno" is OK to implement this?
- If not, what other board should I use?
- Is
Serial.write/print
the correct function? - Or shall I use the
Keyboard.???
function? - Do I have to write an application which runs on the computer and listens the serial port, and emit a real key event? (that's sad)