Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    Where's the resistor on your LED? Commented Mar 22, 2016 at 16:43
  • 1
    digitalWrite (buttonstate,HIGH); - What is that supposed to achieve?! Commented Mar 22, 2016 at 16:44
  • 1
    int fadeamount = 51; - That's a huge amount to fade by... Commented Mar 22, 2016 at 16:45
  • bro brightness doesn't matter i can change it any time to 5 or something low.......and about digitalWrite (buttonstate,HIGH); i used it to let the button state as high even after i leave the pushbutton so that the LED doesn't get off !! Commented Mar 22, 2016 at 16:52
  • i used it to let the button state as high even after i leave the pushbutton so that the LED doesn't get off !! well it doesn't. I don't know how you thought that might work. You're actually writing HIGH to either pin 0 or pin 1. Commented Mar 22, 2016 at 16:53