hithesh123
Full Member level 6
I am designing a keyboard key emulator.
Each key on the keyboard has a hex code. I can store this in a header file as constants. For example const char A=0x1C;
When I call a function with text string as the passing parameter, I want to transmit the hex codes corresponding to the string characters.
For example, if I call the function trans_string(ABCD)
I want this function to transmit hex codes corresponding to the alphabets A, B , C and D.
Each key on the keyboard has a hex code. I can store this in a header file as constants. For example const char A=0x1C;
When I call a function with text string as the passing parameter, I want to transmit the hex codes corresponding to the string characters.
For example, if I call the function trans_string(ABCD)
I want this function to transmit hex codes corresponding to the alphabets A, B , C and D.