1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 01:06:11 +00:00

Update g410effects support

This commit is contained in:
MatMoul 2017-03-25 00:03:05 +01:00
parent a1d4c81471
commit 95fb9c084e
3 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,7 @@
* Refactor many of the code (very hard work)
## [Landrovan](https://github.com/Landrovan) :
* Improve support of G410
* Improve support of G410 (two times)
## [larsnaesbye](https://github.com/larsnaesbye) :
* Fix typo

View File

@ -535,7 +535,7 @@ bool LedKeyboard::setNativeEffect(NativeEffect effect, NativeEffectPart part, ui
uint8_t protocolByte = 0;
switch (m_keyboardModel) {
case KeyboardModel::g410: // Unconfirmed
case KeyboardModel::g410:
case KeyboardModel::g610: // Unconfirmed
case KeyboardModel::g810:
protocolByte = 0x0d;

View File

@ -201,7 +201,11 @@ namespace help {
cout<<" -fx vwave {target} {speed}"<<endl;
cout<<" -fx cwave {target} {speed}"<<endl;
cout<<endl;
if (cmdName == "g410-led") {
cout<<"target value :\t\t\t\tall, keys (all is for compatibility with other keyboard models)"<<endl;
} else {
cout<<"target value :\t\t\t\tall, keys, logo"<<endl;
}
cout<<"color formats :\t\t\t\tRRGGBB (hex value for red, green and blue)"<<endl;
cout<<"speed formats :\t\t\t\tSS (hex value for speed 01 to ff)"<<endl;
cout<<endl;