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*

5
  • 1
    what happens if you change the second if statement to if (false){? Commented Apr 14, 2024 at 16:33
  • @jsotola Nothing happens now when I connect to ground PB0, PB1, or both Commented Apr 14, 2024 at 17:16
  • @jsotola. One last issue. It is the SECOND if , that if true, turns LED on. That is, the first if is irrelevant for some reason and I cannot figure out why this is the case Commented Apr 14, 2024 at 17:26
  • 1
    make the first if (false) ... what happens then? Commented Apr 14, 2024 at 17:30
  • @jsotola, I think I answered below. Can you verify my reasoning? Commented Apr 14, 2024 at 17:45