I'm pulling my hair out over what I suspect is a simple problem for which I cannot work out the logic.
Basically, I have two digital inputs, to make it simple lets say pin 1 and 2, which when pin 1 is pulled low I want the onboard LED (pin 13) to illumate, AND when pin 2 is also low I want it to flash.
if pin 1 is NOT low I want the LED to be off, irrespective of pin 2.
I cannot for the life of me work out the logic required, do I need if statements and a while loop?
Sorry if this is a stupid question, but I cannot work this out
Really appreciate any help on this!