Also tried the following as well: (Still no luck)
Code:LoadTime: ANSEL=%00000010 ADCON0=%10000100 : Pause 10 ADCIN Poten,Time : Pause 10 ; Time=(Time/4) DEBUG "TIME=",DEC Time,10 Return LoadLight: ANSEL=%10000000 ADCON0=%10011100 : Pause 10 ADCIN Ldr,Ambient : Pause 10 DEBUG "AMBIENT=",DEC AMBIENT,10 While Setswitch=1 : Pause 330 : wend Return




Bookmarks