The thing that might be giving you unexpected results is you are looking for the low state.
Change the "0" to "1" to read the high pulse.Code:pulsin IR_Sensor,0,IRpuls_len(BitCount)
The thing that might be giving you unexpected results is you are looking for the low state.
Change the "0" to "1" to read the high pulse.Code:pulsin IR_Sensor,0,IRpuls_len(BitCount)
Dave
Always wear safety glasses while programming.
Bookmarks