6 bits input to decimale pwm output with w2812 leds.

Hello,

I have a arduino uno.
I will make a program with 6 digital inputs for 6 bits counting.
I will send this data to one off. the 64 outputs.
I have the w2812 leds and i will put the input to one output led.
When i have the bit 6 is high then led 64 must burning.
When i have the bit 2 is high then led 4 must burning.
Is this possible to made?
Who have sugestions how to do?

Gert

Yes its possible.
See the Adafruit.com library for driving WS2812.
Sending the on/off data to a string of 64 LEDs should be fairly simple - you need 3 bytes per WS2812 (8 bits per color), if you want one full on you send 0xff 0xff 0xff, if you want one full off you send 0x00 0x00 0x00.

CrossRoads:
Yes its possible.
See the Adafruit.com library for driving WS2812.
Sending the on/off data to a string of 64 LEDs should be fairly simple - you need 3 bytes per WS2812 (8 bits per color), if you want one full on you send 0xff 0xff 0xff, if you want one full off you send 0x00 0x00 0x00.

[

Can i have a little code how to start this program?

And i think that the output from the arduino had 8 bits as Max.

All the leds were working but is it possible to do that individually?

I am new with this programming and i can not find a good learning methode how to begin

Thanks Gert

And i think that the output from the arduino had 8 bits as Max.

No.

Can i have a little code how to start this program?

void setup(){
// setup code here
}

void loop(){
// checking the inputs and setting the LEDs to burn when they are pressed
}

Alternatively look at the examples in the library and extend it from there.

You use the pixels.setPixelColor function to set the pixels you want to set and then finish off with a pixels.show() function call.

Now the way this forum works is you write something, post it and ask a specific question about it. You might want to look at how to wire up and read push buttons first. Also look at how to detect changes by looking at the State Change example in the IDE.

Grumpy_Mike:
No.

void setup(){

// setup code here
}

void loop(){
// checking the inputs and setting the LEDs to burn when they are pressed
}




Alternatively look at the examples in the library and extend it from there.

You use the pixels.setPixelColor function to set the pixels you want to set and then finish off with a pixels.show() function call.

Now the way this forum works is you write something, post it and ask a specific question about it. You might want to look at how to wire up and read push buttons first. Also look at how to detect changes by looking at the State Change example in the IDE.

I will look at the program and make example's for this forum

Thanks for the information.