Microcontroller › PIC › 3 INPUT sensor PIC Programming › The buffer remains ON because
May 5, 2012 at 6:28 pm
#7593
Participant
The buffer remains ON because the code for turning the buffer OFF is included in the ‘else’ of dark sense check. So when the dark sensing is TRUE, the statements inside the else won’t get executed.
Have you tried the code modified by me?