Using the neomatrix without all this UINT stuff

Hi,

hope someonecan help. I love the neomatrix but I find the library very confusing to program for. I'm putting together some low voltage hot tub lighting with and IR conrol.For my application all I want to do is set the 8x8 grid to a single color when the button is pressed. I wrote and debugged all the code while I was waiting for the neomatrix to arrive.

Trouble is, I was expecting to be able to just use matrix.Color(R,G,B); ie matrix.Color(255,128,64); and then Matrix.Show(); to update the whole matrix to one colour. It doesnt seem to work like that. The examples are all a bit thin on the ground and make heavy use of uint_32 t and other arcane things.

For one of the functions Ive written a colour fader which cycles through the rainbow.

Is there any way I can write a friendlier routine to just pass RGB numbers to the neomatrix and have it update the whole matrix?

Thanks

make heavy use of uint_32 t and other arcane things.

That is not an arcane thing it ensures that you get a 32 bit unsigned int no matter what the processor you compile it on. Integers can be 16, 32 or 64 bits long depending on the platform like a Uno, Due, Zero, or Yun.

You use the matrix library with the neopixel library, so you use the methods from that as well. So you need to set all the pixels in the matrix to the same colour. This is just a simple loop that goes through the pixels one at a time and sets them to the same colour. Like the wipe function sets them all to black.

uint_32 is the same as unsigned long
u - unsigned
int - integer
32 - 32 bits