Skip to content
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

key repeat is intermittent on tulip hardware #94

Closed
bwhitman opened this issue Jun 9, 2023 Discussed in #83 · 2 comments
Closed

key repeat is intermittent on tulip hardware #94

bwhitman opened this issue Jun 9, 2023 Discussed in #83 · 2 comments

Comments

@bwhitman
Copy link
Collaborator

bwhitman commented Jun 9, 2023

Discussed in #83

Originally posted by drepetto May 19, 2023
Key repeat sometimes works in terminal, almost never works in edit.py. When it does work it's just for a bit then it konks out. I'm using an old Dell USB keyboard, no hub or anything fancy about it.

bwhitman added a commit that referenced this issue Jun 9, 2023
@bwhitman
Copy link
Collaborator Author

bwhitman commented Jun 9, 2023

Three problems here:

(1) we have big voltage drop on the r6 board from USBC in 5V_USB over to the USB_KB 5V output. It's bad enough that the voltage to the serial chip (CH340) is going so low it's heating up. To make this more reliable, i had to bodge from the 3V3 output of the regulator to pin 4 of the CH340, and lift pin 16 of the CH340. (DAn points out this should actually be 3V3 to pin 16, and leave pin 4 lifted. But my way seems to be fine.)

(2) this keyboard (and maybe many others?) outputs a packet every few hundred ms no matter if a key is held or not. Maybe this is standard, and the 5 I've tried don't do it -- or maybe we stopped doing this on "modern" keyboards. Either way, we should handle it. So we've updated usb_keyboard.c to accept new packets with old information and not reset the key held counter

(3) We were calling usbh_setup twice in main.c. Unsurprisingly, the system was sensitive to this at bootup. We've fixed that.

@drepetto
Copy link
Contributor

drepetto commented Jun 9, 2023

Key repeat now works reliably for me on old Dell keyboard.

bwhitman added a commit that referenced this issue Jun 23, 2023
bwhitman added a commit that referenced this issue Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants