Put an osciloscope on the LED port and you will see why.
You keep on toggling the port while pressing the button and that's why you see the LED dimming.
Other than that your program is OK!
Ioannis
Put an osciloscope on the LED port and you will see why.
You keep on toggling the port while pressing the button and that's why you see the LED dimming.
Other than that your program is OK!
Ioannis
Bookmarks