1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-24 09:46:11 +00:00
g810-led/README.md

100 lines
3.9 KiB
Markdown
Raw Normal View History

2017-01-05 00:55:33 +00:00
# g810-led</br>
2016-06-12 20:16:07 +00:00
2018-08-01 21:37:29 +00:00
Linux led controller for Logitech G213, G410, G413, G512, G513, G610, G810, G910 and GPRO Keyboards.</br>
2016-06-12 20:16:07 +00:00
2017-03-22 14:07:45 +00:00
## Compatible keyboards :</br>
2017-04-21 21:04:50 +00:00
- **G213 Prodigy**</br>
2017-01-08 02:26:22 +00:00
- **G410 Atlas Spectrum**</br>
2017-08-02 09:43:03 +00:00
- **G413 Carbon**</br>
2018-08-01 21:37:29 +00:00
- **G512 Carbon**</br>
- **G513 Carbon**</br>
2017-01-08 02:26:22 +00:00
- **G610 Orion Brown**</br>
- **G610 Orion Red**</br>
- **G810 Orion Spectrum**</br>
- **G910 Orion Spark**</br>
- **G910 Orion Spectrum**</br>
2017-05-12 19:29:12 +00:00
- **GPRO**</br>
2017-01-05 00:55:33 +00:00
2017-03-22 14:07:45 +00:00
## Contribute and evolution :</br>
2017-05-06 21:13:52 +00:00
* [CONTRIBUTING.md](https://github.com/MatMoul/g810-led/blob/master/CONTRIBUTING.md)
2017-01-26 01:43:40 +00:00
2017-03-22 14:07:45 +00:00
## Install :</br>
2017-01-26 01:29:34 +00:00
* [INSTALL.md](https://github.com/MatMoul/g810-led/blob/master/INSTALL.md)
2017-01-15 01:09:26 +00:00
2017-03-22 14:07:45 +00:00
## Help :</br>
2017-04-29 14:57:23 +00:00
`g213-led --help`</br>
2017-01-15 01:20:02 +00:00
`g410-led --help`</br>
2017-08-09 20:06:35 +00:00
`g413-led --help`</br>
2018-08-01 21:37:29 +00:00
`g512-led --help`</br>
`g513-led --help`</br>
2017-01-15 01:20:02 +00:00
`g610-led --help`</br>
2017-01-15 01:09:26 +00:00
`g810-led --help`</br>
2017-01-15 01:20:02 +00:00
`g910-led --help`</br>
2017-05-12 19:29:12 +00:00
`gpro-led --help`</br>
2017-01-06 05:51:58 +00:00
2017-01-26 01:29:34 +00:00
`g810-led --help-keys`</br>
`g810-led --help-effects`</br>
`g810-led --help-samples`</br>
2017-03-22 14:07:45 +00:00
## Samples :</br>
2019-07-19 05:15:40 +00:00
`g810-led -p /etc/g810-led/profile # Load a profile`</br>
2016-08-19 21:11:49 +00:00
`g810-led -k logo ff0000 # Set color of a key`</br>
`g810-led -a 00ff00 # Set color of all keys`</br>
`g810-led -g fkeys ff00ff # Set color of a group of keys`</br>
`g810-led -s color # Set keyboard power on effect`</br>
2017-01-21 08:15:18 +00:00
`g810-led -fx color keys 00ff00 # Set fixed color effect`</br>
`g810-led -fx breathing logo 00ff00 0a # Set breathing effect`</br>
`g810-led -fx cycle all 0a # Set color cycle effect`</br>
`g810-led -fx hwave keys 0a # Set horizontal wave effect`</br>
`g810-led -fx vwave keys 0a # Set vertical wave effect`</br>
`g810-led -fx cwave keys 0a # Set center wave effect`</br>
2016-12-30 20:41:47 +00:00
2017-03-22 14:07:45 +00:00
## Samples with no commit :</br>
2016-08-19 21:38:20 +00:00
`g810-led -an 000000 # Set color of all key with no action`</br>
2016-08-19 21:17:13 +00:00
`g810-led -gn modifiers ff0000 # Set color of a group with no action`</br>
2016-08-19 21:11:49 +00:00
`g810-led -kn w ff0000 # Set color of a key with no action`</br>
`g810-led -kn a ff0000 # Set color of a key with no action`</br>
`g810-led -kn s ff0000 # Set color of a key with no action`</br>
`g810-led -kn d ff0000 # Set color of a key with no action`</br>
`g810-led -c # Commit all changes`</br>
2017-01-05 00:55:33 +00:00
2017-10-25 22:38:46 +00:00
## Samples for G610 :</br>
2017-01-05 00:55:33 +00:00
`g610-led -a 60 # Set intensity of all keys`</br>
`g610-led -k logo ff # Set intensity of a key`</br>
`g610-led -g fkeys aa # Set intensity of a group of keys`</br>
2017-01-06 05:43:14 +00:00
2017-10-25 22:38:46 +00:00
## Samples for G213 :</br>
2017-04-29 14:57:23 +00:00
`g213-led -a 00ff00 # Set all keys green`</br>
`g213-led -r 1 ff0000 # Set region 1 red`</br>
2017-03-22 14:07:45 +00:00
## Samples with pipe (for effects) :</br>
2017-01-06 05:43:14 +00:00
`g810-led -pp < profilefile # Load a profile`</br>
`echo -e "k w ff0000\nk a ff0000\nk s ff0000\nk d ff0000\nc" | g810-led -pp # Set multiple keys`</br>
## Testing unsupported keyboards :</br>
Start by retrieving the VendorID and the ProductID of your keyboard using lsusb.</br>
`lsusb`</br>
Sample return :<br>
`Bus 001 Device 001: ID 046d:c331 Logitech, Inc.`</br>
In this sample VendorID is 046d and ProductID is c331. Now test your keyboard with all supported protocol :</br>
`g810-led -dv 046d -dp c331 -tuk 1 -a 000000`</br>
If your keyboard set all key to off you have found the protocol (1), if not continue.</br>
`g810-led -dv 046d -dp c331 -tuk 2 -a 000000`</br>
If your keyboard set all key to off you have found the protocol (2), if not continue.</br>
`g810-led -dv 046d -dp c331 -tuk 3 -a 000000`</br>
If your keyboard set all key to off you have found the protocol (3), if not, need new dump.</br>
## Building and linking against the libg810-led library :</br>
Include in implementing source files.</br>
```cpp
#include <g810-led/Keyboard.h>
```
To link, simply provide `-lg810-led` to the build flags.</br>
To build the g810-led application as a dynamically-linked variant, run the target:</br>
`make bin-linked`</br>
2017-04-29 15:06:01 +00:00
## Dumps :
Dumps of keyboards are now stored in a separate project to preserve a small download size of this project.
You can find them here : [https://github.com/MatMoul/g810-led-resources](https://github.com/MatMoul/g810-led-resources)