1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2026-01-06 12:56:58 +00:00

Add native effect support

This commit is contained in:
2016-12-30 17:55:19 +01:00
parent 5a2bff5225
commit 3b13f247b5
3 changed files with 169 additions and 51 deletions

View File

@@ -45,6 +45,7 @@ class Keyboard {
bool parseKey(std::string key, KeyAddress &keyAddress);
bool parseKeyGroup(std::string key, KeyGroup &keyGroup);
bool parseColor(std::string color, KeyColors &colors);
bool parseSpeed(std::string speed, uint8_t &speedValue);
bool setPowerOnEffect(PowerOnEffect powerOnEffect);
bool setKey(KeyValue keyValue);
bool setKey(Key key, KeyColors colors);
@@ -52,6 +53,8 @@ class Keyboard {
bool setAllKeys(KeyColors colors);
bool setGroupKeys(KeyGroup keyGroup, KeyColors colors);
bool setFXColor(KeyColors colors);
bool setFXBreathing(KeyColors colors, uint8_t speed);
bool setFXColorCycle(uint8_t speed);
private: