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

Examples #4

Open
petershaw opened this issue Feb 12, 2014 · 4 comments
Open

Examples #4

petershaw opened this issue Feb 12, 2014 · 4 comments

Comments

@petershaw
Copy link

Hi Brian,
this looks nice. Could you please add some examples, that i can jump on your code. I would like to use it and add some features.
Currently, i build a OpenSource HArdware ArtNet Matrix Wall, and need a good lib to test some code-ideas. Your code looks like a good start.

Thanx a lot.

@BrianMMcClain
Copy link
Owner

Hey @petershaw,

Sounds good to me! Currently, there are massively simple examples in the test dir, however I'll make it a note to get some more complete examples as well.

@sirsquidness
Copy link

Would be great to have some comment on that test - what are all the magic numbers? I don't know what any of the 255s or 0s mean.

You should abstract the interface one more step to make it client.send(artnetport, dmxport, percentage); or similar. Passing an array of magic numbers isn't very nice to read code :)

Either way, <3

@justinireland
Copy link

Each LED is represented by 3 values corresponding to RGB. The number value 0-255 is the intensity. The array can be any length (to a limit).

So, for example:
First LED, solid blue = [0,0,255]
First 3 LEDs, solid green = [0,255,0,0,255,0,0,255,0]
First LED solid white, third LED solid red = [255,255,255,0,0,0,255,0,0]

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

5 participants
@justinireland @petershaw @BrianMMcClain @sirsquidness and others