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

Draft: PS/2 Mouse support #70

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Draft: PS/2 Mouse support #70

wants to merge 8 commits into from

Conversation

thejpster
Copy link
Member

A work-in-progress. I can talk to the keyboard, but I never hear anything from the mouse. I suspect PCB issues.

thejpster and others added 8 commits June 16, 2024 22:38
But the mouse port on my Elecrow board doesn't seem to work - I don't see 0xAA 0x00 on start-up from the mouse (but I do if I put the mouse in the keyboard port).
1) The clock flipping seems to break things (not sure why) - and I was flipping the wrong interrupt bit on the keyboard anyway.
2) Added an encode function for PS/2 words
@thejpster
Copy link
Member Author

The mouse now works correctly.

I need to look with an oscilloscope though, because I had to take out the clock inversion code and I really thought that was important when talking back to the Keyboard or Mouse. Also, we can't send multi-byte sequences to the keyboard or mouse yet, and we need that to control the Caps Lock / Num Lock / Scroll Lock lights.

@thejpster
Copy link
Member Author

Also, we probably want to let the host write to the PS/2 ports.

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

Successfully merging this pull request may close these issues.

2 participants