Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands for RGB+CCT #12

Open
gerby77 opened this issue Nov 16, 2020 · 0 comments
Open

Commands for RGB+CCT #12

gerby77 opened this issue Nov 16, 2020 · 0 comments

Comments

@gerby77
Copy link

gerby77 commented Nov 16, 2020

Hi,

Just wanted to give a comment. I'm currently developing a lightcontrol for a Photobooth and i'm using your C# project.
It has taken a while to get a Milight/Miboxer Wallwasher (RGB+CCT) to work with the ibox2. I could get connection to the box, but no light would be turned on. Finally i found out that one of the main reasons was that the lamptype wasn't ok.
In your example for CCT you would use 0x08, but in my case it is 0x07.

Check my examples:

static readonly byte[] ON = { 0x31, 0x00, 0x00, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00 };
static readonly byte[] OFF = { 0x31, 0x00, 0x00, 0x07, 0x03, 0x02, 0x00, 0x00, 0x00 };
static readonly byte[] LINK = { 0x31, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 };
static readonly byte[] UNLINK = { 0X31, 0X00, 0X00, 0X07, 0X00, 0X00, 0X00, 0X00, 0X00 };

static readonly byte[] WHITE =		{ 0x31, 0x00, 0x00, 0x07, 0x03, 0x05, 0x00, 0x00, 0x00 };
static readonly byte[] BLUE =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0xBA, 0xBA, 0xBA, 0xBA };
static readonly byte[] AQUA =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0x85, 0x85, 0x85, 0x85 };
static readonly byte[] RED =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0xFF, 0xFF, 0xFF, 0xFF };
static readonly byte[] LAVENDER =	{ 0x31, 0x00, 0x00, 0x07, 0x01, 0xD9, 0xD9, 0xD9, 0xD9 };
static readonly byte[] GREEN =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0x7A, 0x7A, 0x7A, 0x7A };
static readonly byte[] LIME =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0x54, 0x54, 0x54, 0x54 };
static readonly byte[] ORANGE =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0x1E, 0x1E, 0x1E, 0x1E };
static readonly byte[] YELLOW =		{ 0x31, 0x00, 0x00, 0x07, 0x01, 0x3B, 0x3B, 0x3B, 0x3B };
static readonly byte[] BRIGHTNESS = { 0x31, 0x00, 0x00, 0x07, 0x02, 0x64, 0x00, 0x00, 0x00 };

static readonly byte[] MODE =		{ 0x31, 0x00, 0x00, 0x07, 0x06, 0x02, 0x00, 0x00, 0x00 };
static readonly byte[] MODEDECREASE = { 0x31, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00 };
static readonly byte[] MODEINCREASE = { 0x31, 0x00, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00, 0x00 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant