From 6d9058a017fb15ffbedf5df129bc0eb1df991052 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Wed, 6 May 2020 01:13:18 +0200 Subject: [PATCH] Finalize g815 --- README.md | 7 +++++-- src/main.cpp | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8933c1..40ca3cb 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Linux led controller for Logitech G213, G410, G413, G512, G513, G610, G810, G815 - **G610 Orion Brown**
- **G610 Orion Red**
- **G810 Orion Spectrum**
-- **G815 Lightsync**
+- **G815 LIGHTSYNC**
- **G910 Orion Spark**
- **G910 Orion Spectrum**
- **GPRO**
@@ -34,6 +34,7 @@ You can load predefined configurations on startup! `g513-led --help`
`g610-led --help`
`g810-led --help`
+`g815-led --help`
`g910-led --help`
`gpro-led --help`
@@ -81,12 +82,14 @@ Start by retrieving the VendorID and the ProductID of your keyboard using lsusb. `lsusb`
Sample return :
`Bus 001 Device 001: ID 046d:c331 Logitech, Inc.`
-In this sample VendorID is 046d and ProductID is c331. Now test your keyboard with all supported protocol :
+In this sample VendorID is 046d and ProductID is c331. Now test your keyboard with all supported protocol (for 2019 keyboard start with -tuk 4):
`g810-led -dv 046d -dp c331 -tuk 1 -a 000000`
If your keyboard set all key to off you have found the protocol (1), if not continue.
`g810-led -dv 046d -dp c331 -tuk 2 -a 000000`
If your keyboard set all key to off you have found the protocol (2), if not continue.
`g810-led -dv 046d -dp c331 -tuk 3 -a 000000`
+If your keyboard set all key to off you have found the protocol (2), if not continue.
+`g810-led -dv 046d -dp c331 -tuk 4 -a 000000`
If your keyboard set all key to off you have found the protocol (3), if not, need new dump.
## Building and linking against the libg810-led library :
diff --git a/src/main.cpp b/src/main.cpp index b59c4a1..e867327 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -303,6 +303,9 @@ int main(int argc, char **argv) { case 3: kbd.SupportedKeyboards = { { vendorID, productID, (uint16_t)LedKeyboard::KeyboardModel::g213 } }; break; + case 4: + kbd.SupportedKeyboards = { { vendorID, productID, (uint16_t)LedKeyboard::KeyboardModel::g815 } }; + break; default: break; }