No0ne / hid2cdc

USB keyboard to USB CDC converter using a Raspberry Pi Pico
MIT License
6 stars 2 forks source link

test of signalling from picomite to HID2CDC #3

Open robert-rozee opened 8 months ago

robert-rozee commented 8 months ago

hi No0ne, i'd like to experiment with having the picomite VGA send a message to the HID2CDC and have it respond back. would it be possible to implement the following three things?

  1. have the HID2CDC respond to escape Z (0x1B followed by 0x5A received from the picomite) by sending the string of 7 characters "HID2CDC" to the picomite. this is the first step of the picomite determining if it is connected to a HID2CDC and re-configuring itself accordingly. any other serial VT-like device that a picomite is likely to be connected to will either ignore the escape Z sequence, or send back a different response.

  2. set GPIO4 high if the control character DC1 is received from the picomite, and low if DC2 is received.

  3. set GPIO5 high if the control character DC3 is received from the picomite, and low if DC4 is received.

cheers, rob :-)