connecting a laptop touchpad to the Espruino #786
Replies: 3 comments
-
Posted at 2015-08-03 by @gfwilliams Sorry for the delay - I was away last week. Yes, sadly the JS execution is just a tad too slow for setWatch. It might work with a keyboard where you only get a few bytes at a time, but something like a touchpad where you get a stream of data would probably be too fast. While USART isn't in 1v79, it is in the latest GitHub builds and will be in 1v80 (I can't release it yet because there's a bug when calling I've tested with PS2, and it's as simple as:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-20 by @yerpj Thanks Gordon. Currently I solved the problem by using an intermediate stm32 which is responsible to convert PS/2 commands into an UART based command protocol. I will wait for the 1v80 release, then I will try again with the example you tested (BTW, thank you for that example code). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-20 by @gfwilliams Just to say, 1v80 is already here - so it should work now assuming the firmware is up to date :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-07-27 by @yerpj
Hi guys,
I am trying to interface an old Synaptics touchpad with the Espruino.
Basically, the protocol is PS/2. (http://www.synaptics.com/sites/default/files/ACF126.pdf)
I started implementing something with some setWatch functions in order to react at CLK falling edges.
I am encountering many problems, as the scripting machine is not fast enough to handle things in time.
In order to correctly sample the input digital stream (on DATA line), I tought using an USART (in synchronous mode, with a clock line) but, ... , it is currently not available in Espruino, is it?
Did someone already work on PS/2 interfaces?
Beta Was this translation helpful? Give feedback.
All reactions