seife / marble_fx Goto Github PK
View Code? Open in Web Editor NEWArduino leonardo as USB converter for Logitech Trackman MarbleFX
Arduino leonardo as USB converter for Logitech Trackman MarbleFX
I was able to test the code now on a 32u4 Arduino Pro Micro with the T-CJ12. It seems to need a reinsertion when combined with usbguard after allow-device (maybe some hook to re-init hardware when the kernel driver is allowed to work is needed, normal devices work right away after lifting the software block).
But to come to the issue: I see that the red button is directly translated to scroll events in the Arduino. This spares any extra software setup on the PC, but it prevents the full experience: two-dimensional scrolling in both axes! How can you live without? ;-)
[Edit: Was misled by debugging output to serial port.]
I see https://www.arduino.cc/reference/en/language/functions/usb/mouse/mousemove/ being used
Mouse.move(xVal, yVal, wheel)
So this API doesn't allow for 2D scrolling.
The solution is to just pass through the red button and use xinput to configure things? Maybe we can use some idle pins to provide a switch for hardware of software scrolling mode. Hacking up the red button passthrough should be easy enough, actually easier than handling scrolling directly.
(Also: A custom device string would be nice if software scrolling needs to be configured โฆ)
Maybe this is trivial or it is impossible: Do you think it is feasible to translate both a PS/2 trackball and pass through an PS/2 keyboard at the same time? This would be a straight upgrade from the simple PS/2 to USB converter I have here (could repurpose its casing, even;-) and would enable having the trackball and a matching IBM Model M wired up only using one USB port.
Can the 32u4 drive two PS/2 devices at the same time? I imagine a keyboard being a lot less work than a pointing device.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.