The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Legacy Corsair Software > CUE 1.x and 2.x SDK


Thread Tools Search this Thread Rate Thread Display Modes
Old 04-25-2016, 12:25 AM
Raichuboy17 Raichuboy17 is offline
Registered User
Join Date: Jul 2014
Posts: 10
POST ID # = 848906
Raichuboy17 Reputation: 10
Default Simple lighting

I assume that some of you are coming on here for very simple SDK stuff, or just learning programming and want a fun project for yourself. I am learning it on my own as part of a C/C++ learning tool so I will be uploading simple modifier things on here to use in conjunction with CUE.

Simple single color LED lighting:

CorsairLedColor BASE[n];
CorsairLedId KEY[n] = {/* CorsairLedIdEnum ID, example: CLK_A is key A */ }; //n = the number of keys you want to light up. Replace n with the number of keys you want to light up
for (int i = 0; i < n; i++) {
BASE[i].ledId = KEY[i];
BASE[i].r = 255;
BASE[i].g = 255; //Basic RGB values.
BASE[i].b = 255;

CorsairSetLedsColors(n, base); //If you want to add more colors just copy and paste this code, but make sure to change the name of BASE and KEY. They are just variable names.

//THIS DOES NOE SET ANY KEY YOU DO NOT LIGHT TO AN RGB VALUE OF 0, 0, 0. You will have to do that with a second one of these setting each one to 0, 0, 0 if you want them to be blank no matter what.

Last edited by Raichuboy17; 05-07-2016 at 03:46 AM. Reason: Changed what I wanted this thread to be about
Old 05-20-2017, 01:43 AM
Comet ☄'s Avatar
Comet ☄ Comet ☄ is offline
Comet ☄'s PC Specs
Join Date: Feb 2016
Location: San Francisco Bay Area, California
Posts: 874
POST ID # = 904017
Comet ☄ Reputation: 10
Send a message via Yahoo to Comet ☄

Make sure to have error-handling, and also point out what code is yours as opposed to just copying Corsair's SDK.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 03:52 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.