Thanks! Just stuck it in GitHub, so it should be live next time I update the site :)
I haven't actually come up with a PS/2 module yet, but the data argument of setWatch was made for exactly this sort of thing. If you setWatch on the PS/2 clock, with data as the data line then you should be able to receive the PS/2 data pretty well.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks! Just stuck it in GitHub, so it should be live next time I update the site :)
I haven't actually come up with a PS/2 module yet, but the
data
argument ofsetWatch
was made for exactly this sort of thing. If you setWatch on the PS/2 clock, withdata
as the data line then you should be able to receive the PS/2 data pretty well.