Ok so I've been trying to work this out for a while now, and forum/Google searched haven't gotten me far...
I've got an LED (input) that I need to read the status of. It has three states:
On and off are obviously easy, but when the LED is blinking I need to do something different in my code. This LED in particular is on about a 2Hz cylce (on for 1 sec, off for 1 sec). I have another project which needs a similar bit of code so this should be able to work for both with a bit of modification.
Hardware-wise, I'll be using the LED pins to drive an optocoupler which will in turn connect to an input pin on the Arduino.
Does anyone have any tips on how to do this?