ah- / anne-key

Firmware for Anne Pro Keyboard written in Rust
Apache License 2.0
567 stars 32 forks source link

[Question] Is it possible to control individual leds over usb? #69

Open gvlasov opened 6 years ago

gvlasov commented 6 years ago

I would like this a lot, but I don't know if this is technically possible with this piece of hardware. Controlling individual leds would make a fun programmable toy, or it could bring a whole new set of off-screen indicators. Want this so bad that I'm willing to get into Rust and driver development for that to happen.

gvlasov commented 6 years ago

Or over bluetooth, doesn't matter, just want to write scripts that do crazy shit with the leds.

ah- commented 6 years ago

Haha :)

A simple version of that should just work if you poke around the protocol a bit.

Have a look through some of the alternative apps like https://github.com/Blucky87/AnneProCLI to see how to talk to the Anne/LED controller. There's a message that lets you control individual leds, it's used by the bluetooth setup mode for example.

For most of this you won't need any special firmware, bluetooth messages for the LED controller just get forwarded to it, so stock should work as well.

If you want high fps for your blinking leds you'll need to write your own firmware for the LED controller though :)