Professional Documents
Culture Documents
Sadadadaadada
Sadadadaadada
dat"
$crystal = 8000000
$baud = 9600
dim x as Bit
dim y as Word
locate 1,1
lcd "SAKLAR 1"
locate 2,1
lcd "SAKLAR 2"
Do
x = PINB.0
locate 1,10
if x = 0 then
lcd "OFF"
PORTC.0 = 0
else
lcd "ON "
PORTC.0 = 1
end if
x = PINB.1
locate 2, 10
if x = 0 then
lcd "OFF"
PORTC.1=0
else
lcd "ON "
PORTC.1 = 1
end if
y = Getadc(0)
waitms 200
Loop