1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-25 18:26:10 +00:00
g810-led/src/helpers/utils.h

22 lines
671 B
C
Raw Normal View History

2017-01-21 08:15:18 +00:00
#ifndef UTILS_HELPER
#define UTILS_HELPER
#include <iostream>
#include "../classes/Keyboard.h"
namespace utils {
std::string getCmdName(std::string cmd);
bool parseStartupMode(std::string val, LedKeyboard::StartupMode &startupMode);
bool parseNativeEffect(std::string val, LedKeyboard::NativeEffect &nativeEffect);
bool parseNativeEffectPart(std::string val, LedKeyboard::NativeEffectPart &nativeEffectPart);
bool parseKey(std::string val, LedKeyboard::Key &key);
bool parseKeyGroup(std::string val, LedKeyboard::KeyGroup &keyGroup);
bool parseColor(std::string val, LedKeyboard::Color &color);
bool parseSpeed(std::string val, uint8_t &speed);
}
#endif