sexta-feira, 1 de março de 2013

TUTORIAL - Change The LED Intensity

CHANGE THE LED BRIGHTNESS USING A BUTTON

This one will be very short, because we will only change the sketch, which means that for the schematics you need to read the last post.


This one is interesting because you can change number of intensities you want to use.
Since the max of the LED is 255, you should use a divisor of 255, I used 85 but you can use 51 or even less.

I will leave homework for the interested ones and will challenge you to change the intensity using an 10K Potentiometer.
If you have any troubles making it work, send me an e-mail or just write a comment on this post and I will help you.




Sem comentários:

Enviar um comentário