Guys , I’m new to the arduino world . I’m on lesson 29 or so of Paul MCcwhorters YouTube series . The thing that has confused me the most is the toggle switch . “One press turns led on and stays on, the other press turns the led off and stays off until pressed again “ I got this to work by following a few codes online but it just isn’t clicking in my brain . The easiest one to code I found was using a Status =false and a status =!status with a IF statement followed by a While in the IF clause .
Can anyone explain the toggle switch on a more simple term?