Back to Parent

Reflection

My initial intention is to push the button and the LED will keep being bright. So I added another integer to indicate the previous state of the button. I thought when the buttonState is LOW (button pushed), the lastButtonState equates to LOW, which failed to meet the first if statement so it won't change the LED state anymore until I pushed the button again. Yet, it turned out the code was not working. I still need to figure out the problem.  


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0