Notifications
Clear all
2019-12-27 9:17 am
You just need to add a boolean variable that you "toggle" and invert its value each time you receive a signal. So when the first signal comes in you toggle it HIGH, next time it gets toggled LOW. You use that boolean (instead of the incoming trigger) to control the LED state.
The easiest way to explain that would be to have you look at the article I wrote on using IR Remote controls. In one of the experiments I do exactly what you are asking, except with an IR remote.
?
Bill
"Never trust a computer you can’t throw out a window." — Steve Wozniak