an attempt to create a Lighting SDK for dA Meca Master RGB through Reverse Engineering
this project is still far from finished, but hey, the basic stuff is working
Actually work on this thing without procrastinating every 5 minutes- Do Total rewrite in C++ (current one is written in C)
- Finish Features
do initial commit of rewrite- Add wiki(?)
- Linux and Mac support
- Tidy up things
// Set the color of the device withrandom colors
#include "pch.h"
#include <iostream>
#include <random>
#include <Windows.h>
#include "KeyboardSDK.h"
int main(){
std::random_device R;
std::random_device G;
std::random_device B;
std::uniform_int_distribution<int> uf(0, 255);
KeyboardSDK Keyboard;
if (!Keyboard.FindKeyboard()) {
std::cout << "Cannot Find Keyboard" << std::endl;
}
else {
std::cout << "Keyboard Found!" << std::endl;
while (true) {
std::cout << "Color changed to: " << std::hex << "#" << uf(R) << uf(G) << uf(B) << std::endl;
Keyboard.SetColorAllKeys(uf(R), uf(G), uf(B));
Sleep(1000);
}
}
}