Hi everyone.
I think I've searched too much and tied myself in knots...its possible this is a software question but given the nature of the project I think this is right (yes I'm a n00bie)
Here's what I'm trying to do...
I have a DFRobot IR camera hooked up to an itsybitsy M0 microcontroller. The camera is detecting 2 IR light bars and responding as it should (absolute values in x and y). It's essentially a light gun of sorts minus the buttons.
All sems fine when plugged in via USB to my modern PC - the code I'm using uses the serial monitor which shows the x and y as it should - however I want the micro controller to transmit the data via PS/2 protocol NOT USB. The final set up will be plugged into an old PC with a GREEN PS/2 input. No USB's in sight!
I've looked at the ps2dev library and other PS2 related libraries and watched endless videos and read lots of forum chats on various topics and I'm probably getting very confused - but they all seem to suggest they are for converting old pS/2 device inputs (mouse/keyboard mostly) plugged into an arduino that then converts their respective signals and outputs via USB to a modern PC
However I'm wanting the output via PS/2 (so the camera is acting like a mouse) - the arduino needs to transmit in PS/s protocol.
I know I how the PS/2 wiring works and I think I know which pins to use ont he itsy bitsy (although unsure if interupts are needed). I also know (roughly) how the PS/2 protocol works (11 bits - start 9 bits, parity bit, stop ). What I dont know is which library to use to get the controller to output in PS/2 protocol.
Can anyone point me in the right direction please and perhaps advise any examples or threads they maybe aware of?
Many thanks
Adrian