| ??? 01/13/10 05:54 Read: times  | 
#172406 - PWM color (24bit to 16bit or 8bit) | 
Hello.
 I have made a simple device that controls a RGB LED by software PWM, using data received by serial port... This is working VERY well, no problem with this. By now the color is controlled by 3 bytes (R,G and B) But I want to add a new feature to control the color using only 1 byte maybe 2 two bytes. What is really necessary is to have black and white in the combination. What would be nice: In 1 byte color selection, to start with black, then cycle all colors, then white, or something like that. In 2 byte mode, one byte be the color, and the other the brightness would be very nice. It is not specific, I dont have any clue on how to do this, so any idea would be very helpful. The only thing that cames in my mind is a color table, but would use 3x256 bytes of code memory. Well, I really dont know! Thank you very much!  | 
| Topic | Author | Date | 
| PWM color (24bit to 16bit or 8bit) | 01/01/70 00:00 | |
   HSV?        | 01/01/70 00:00 | 



