Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Using key lighting programmatically. #7

Open
aminehmida opened this issue Mar 2, 2018 · 3 comments
Open

[Feature request] Using key lighting programmatically. #7

aminehmida opened this issue Mar 2, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@aminehmida
Copy link

The idea is to offer an easy way to access keys lighting programmatically (API?). This will allow cool stuff like receiving notifications visually on the keyboard like flashing "m" letter if you receive an email etc ...
I hope this can be easily implemented in this firmware and thank you in advance if you consider this :)

@ah-
Copy link
Owner

ah- commented Mar 2, 2018

That is a nice idea and shouldn't actually be all that difficult as there's already a protocol in place to talk to the keyboard over bluetooth. See for example @fcoury s https://github.com/fcoury/node-anne-pro

Thanks for the suggestion, will have a look once the basics are working.

@ah- ah- added the enhancement New feature or request label Mar 2, 2018
@MvEerd
Copy link

MvEerd commented Mar 2, 2018

+1 👍 There are some key lighting implementations I've considered working on but pushing full layout updates over Bluetooth seems inefficient

If possible I would love to see some functionality to do this over USB to eliminate the need for Bluetooth pairing if you just want to 'plug and play'

Thanks for your work on this! I'll try to get more familiar with Rust and STM32 to give more constructive suggestions or commits

@ah-
Copy link
Owner

ah- commented Mar 2, 2018

Not implemented at all yet, but there is a message that changes the LEDs for a set of keys, see here: https://github.com/hi-a/annepro-key#sample-messages

09 35 0b ca 0a   type:9  size:53 cmd:11      ?:202 keys:10
00 ff ff 00 01   key:Esc color:Y
01 00 ff 00 02   key:1   color:G mode:flash
02 ff 00 00 01   key:2   color:R
03 ff 00 00 01   key:3   color:R
04 ff 00 00 01   key:4   color:R
0c 00 ff 00 01   key:+   color:G
2f 00 ff 00 02   key:B   color:G mode:flash
0b ff 00 00 01   key:-   color:R
0a 00 ff 00 01   key:0   color:G
1d 00 ff 00 01   key:A   color:G 

message header 09 35 0b
command header ca 0a
Payload format => key:byte color:3bytes mode:byte

Basically you send message 9/11 and then a list of keynr and colour/mode.
Would be nice to have this all a bit more documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants