hey,
i am currently attempting to make a light for wich the program for it is as the surrounding light drops it take the ouput from the Light sensor, and them puts the same volatge from the output, however if i high pulse is given from a switch put into a different input leg, however the end result is just the light on full the entire time
my program currently is
main:
prog: if pinc.2 = 1 then push
readadc c.1, b0
if b0 > 30 then lux
debug
goto main
push:
high b1
b1=255
wait 1
for b1=255 to 0 step - 2
pwmout 3,255,b1
if b0=b1 then goto main '
pause 10
next
Lux:
let pinc.7 = b0
goto main
Any help would be greatly apprceiated
symon20
i am currently attempting to make a light for wich the program for it is as the surrounding light drops it take the ouput from the Light sensor, and them puts the same volatge from the output, however if i high pulse is given from a switch put into a different input leg, however the end result is just the light on full the entire time
my program currently is
main:
prog: if pinc.2 = 1 then push
readadc c.1, b0
if b0 > 30 then lux
debug
goto main
push:
high b1
b1=255
wait 1
for b1=255 to 0 step - 2
pwmout 3,255,b1
if b0=b1 then goto main '
pause 10
next
Lux:
let pinc.7 = b0
goto main
Any help would be greatly apprceiated
symon20