Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Quick start guide? #2
Hey, first of all I'd like to make sure, that you're aware that this library is still in heavy development (even if it doesn't seem so - I'm a bit short on time lately) and will definitely have breaking api-changes in the near future.
Settings things up to use it right now is a bit tricky. I think the best way is the following:
If this is done using the library is quite simple:
RGBSurface surface = RGBSurface.Instance; surface.Exception += args => Debug.WriteLine(args.Exception.Message)); surface.LoadDevices(AuraDeviceProvider.Instance); // This one can cause some trouble right now surface.LoadDevices(CorsairDeviceProvider.Instance); surface.LoadDevices(LogitechDeviceProvider.Instance); surface.LoadDevices(CoolerMasterDeviceProvider.Instance); surface.LoadDevices(NovationDeviceProvider.Instance);
After that you can access all loaded devices trough the Devices-enumerable on the surface.
Now the decisions depends more on how you want to work with the library. If you want to work surface-based you should loop through all devices and set their location to represent your table layout, if you want to work strictly device-based you can skip this step.
Lighting something up now is quite easy. Just create a group containing all the leds you want to use for one specific thing and apply a brush and if needed decorators (some sort of effects) to make something fancy. Just browse through the preset-projects to see what is currently available and how they are implemented (if you want to create your own).
You can also check https://github.com/DarthAffe/KeyboardAudioVisualizer/tree/master/KeyboardAudioVisualizer as an example project, but the device-access thing done there is not really good so it might not be the best reference :(
If you need any more information feel free to ask :)
This is exactly what i needed, thanks man!
I noticed that you are busy and there are many thing to make in the API yet, but i think that contributing is better than reinventing the wheel, if i face any bugs or need something implemented i'll talk to you and ask for directions for pull-requests.
Thanks, this library is shaping to be perfect to my Arduino LED project, loving it.