Hi Everyone! I'm pretty new to Arduino & need your expert suggestions on a issue i'm facing with my arduino project.
I'm trying to read file content from Arduino & convert them as HID key code & simulate key press. i'm getting the desired result with my project. however, if the following line in is removed then the complete code doesn't work.
Serial.println("\n");
but, if the above line is added then HID simulation starts with below combination of additional keypress before it start printing the characters read form SDcard file.
g
e.g:-
file content :- B B ROY goes to Great Britain to find a Very Good Wife.
Expected HID keyboard simulation:- B B ROY goes to Great Britain to find a Very Good Wife.
if the line "..Serial.println("\n");.." is added in the code then,
Actual HID keyboard simulation:- gB B ROY goes to Great Britain to find a Very Good Wife.
What can i do in my code to avoid those unexpected additional keypress from my code..
sdcard-read-hid-press.txt (10.7 KB)