I hate Python. It seems as if somebody was trying to pick the worst of every preceding language when they crafted it ...
Too high of an emphasis on readability, is what I think the problem is.
Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.
Benefits of registering include
I hate Python. It seems as if somebody was trying to pick the worst of every preceding language when they crafted it ...
Weak variable typing and the use of indentation as block delimiting are the first two things that pop to mind. Sooooo easy to break that code.Too high of an emphasis on readability, is what I think the problem is.
Pete
0-255 is The DMX (DMX 512 1992) protocol. It's 8bit Our control input would be 0-10 (0 being 0 and 10 being 255) becuase originally way back DMX was controlled by a 0-10v signal
Generally you would have 4 channels , RGB and intensity ( rather than RGB + Intensity for each array)
On a lighting control desk we would give the item a start address and then have 3 other addresses assigned to it
Hue and Sat can be additional channels (depending on what the microprocessor looks for) or be done by manipulating each channel
The same basic protocol is in use today in professional lighting systems within the entertainment and TV world with each fixture looking for a 0-255 signal on each channel (up to 20 times per sec)
The connector is a "place holder" as it were. I used it because they will send it as a PTH. There is a small cut out where two wires will exit through the rear.And you connector looks like its on the same side as the LED's, that might get in the way. Consider moving it to the back and consider a 90 degree connector!