At first, I was a little careless for resister so didn't get the right amount of light from LED. Very soon I figured that I need 'lighter' resister which is 97.5 Ohms one and....Voila!
Second mistake I made: didn't connect digital input pin for a switch. (on aruduino: int switchPin = 2),then corrected that error.
No comments:
Post a Comment