-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use USBCDC and HID together? #112
Comments
It is not a good practice to use CDC just for reconfigure the keyboard map. Adding HID raw report should be a better choice. Take a look at https://github.com/yswallow/CH552duinoKeyboard If you still want to use CDC and HID together, you may check https://github.com/Noteolvides/CubeTouch/tree/main/Examples/CDC_KEYBOARD I've not tested any of the referenced project and I don't know how they work or if they were buggy. |
I tried https://github.com/Noteolvides/CubeTouch/tree/main/Examples/CDC_KEYBOARD I'm a little confused: what do you mean 'Adding HID raw report'?Is that modify the arduino code when need reconfigure the keyboard map? |
The same hid endpoint can do keyboard, mouse and raw hid communication with a different report id. You would be able to use hid API on computer to do 2 way communication. That is how Marco pad keyboard do remap. |
I have completed a small three-key keyboard, and can reconfigure the keyboard map through the serial port. |
It seems you used https://github.com/Noteolvides/CubeTouch/blob/main/Examples/CDC_KEYBOARD/CDC_KEYBOARD.ino as example? |
Hi, I used https://github.com/Noteolvides/CubeTouch/blob/main/Examples/CDC_KEYBOARD/CDC_KEYBOARD.ino as example. |
The memory overlap may not have immediate problem, bugs will be triggered in some boundary conditions. Using 266 will be safer and avoid the problem. |
hi , I completed my DIY project , https://github.com/yuan910715/3keys |
Hi
I want to use CH552 to finish a 6 keys keyboard , I write the code reference to the example HidKeyboard , and it works fine.
I want to develop a PC software , it can communication to CH552, so I can define the keyboard button to any key ,no need to upload the program again to change the key,
I use USBCDC to finish serial communication , but HidKeyboard is not work
How to use USBCDC and HID together?
Or is there any other way?
Thanks a lot
The text was updated successfully, but these errors were encountered: