I decided to make another 'chicken door' again this time using a 16f84. As it has no ADC for the LDR I tried using RCTIME but all I get is either 0 or 1 as the result, is it my code?
I tried putting one end of the LDR to 5v the other to a .1 cap which then goes to the pin.
I tried LDR to pin , other end to cap to ground.
Both give same result.
I'm using:-
LOW PortB.0
PAUSE 10
RCTIME PortB.0,0,LDR
LCDOUT $FE,$80,LDR
Bookmarks