Quote:
Originally Posted by jessejanssen
I don't want to be rude against pds2k12, you may use his code too if you prefer it. But I'd do it this way:
There are two ways of doing this, if the green, purple and red lights are on different positions you should use the next:
I just kept 3 commands because you used 3, you can indeed also go with a param to select which color you want within 1 command.
Best regards,
Jesse
|
I don't consider this as rude
Jesse, I'll consider this as another idea by
You(Jesse), this is actually a good idea by using
2 Dimensional Array, You could combine My code & Jesse's code together, I used
char-array to save some
memory, also because it doesn't have the size of
255+ or lower than
0 that's why I used
char-array