Now for something to do you can get rid of that yukkie large switch block in setLed() with an array of values.
Rob
Now for something to do you can get rid of that yukkie large switch block in setLed() with an array of values.
Rob
Good idea. A quick fix that tidies it up.
A 2-dimensional array with the values from switch/case and a change to the spi.transfers to reference the array.
Thanks.