Forum: FPGA, VHDL & Verilog VHDL regulating intensity 3 LED

von ghost (Guest)

Rate this post
0 useful
not useful
Hello, I would like to help with the programming of the controller 
intensity of two ice using buttons so that they are three buttons (not 
one single color RGB) by pressing one button, the intensity of the LED 
will increase by one 0-256 (0-100%) and others do the same so that it is 
possible to set different colors through mixing. Thanks for any help.
Any question?

von Lothar M. (lkmiller) (Moderator)

Rate this post
0 useful
not useful
256 is not a good number. It wastes 254 increments, because it needs 9 
bits instead of 8 needed for 0..255. Think about that...

ghost wrote:
> I would like to help with the programming
Whom would you like to help?
Or do you mean you need help?
Then lets try that fairly simple task this way: you start with 
something, report the problems with that, and we discuss some possible 

: Edited by Moderator


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.