kieranallan@yahoo.com
New Member
hi,
tryig to detect if two pins high but dont seem to work..
start1:
pause 200
if pinC.1 =1 then
serout B.7,N2400,(254,128) ' move to start of first line
serout B.7,N2400,("one in ") ' output text
pause 10
elseif pinC.2 =1 then
serout B.7,N2400,(254,128) ' move to start of first line
serout B.7,N2400,("two in ") ' output text
pause 10
else
serout B.7,N2400,(254,128) ' move to start of first line
serout B.7,N2400,("put plug in ") ' output text
pause 10
endif
goto start1
start2:
if pinC.3 =1 then
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" pin 3 ") ' output text
pause 10
elseif pinC.5 =1 then
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" pin 5 ") ' output text
pause 10
elseif pinC.3 =1 and pinC.5 = 1 then
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" pin 3 pin 5 ") ' output text
pause 10
else
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" ") ' output text
pause 10
endif
goto start2
tryig to detect if two pins high but dont seem to work..
start1:
pause 200
if pinC.1 =1 then
serout B.7,N2400,(254,128) ' move to start of first line
serout B.7,N2400,("one in ") ' output text
pause 10
elseif pinC.2 =1 then
serout B.7,N2400,(254,128) ' move to start of first line
serout B.7,N2400,("two in ") ' output text
pause 10
else
serout B.7,N2400,(254,128) ' move to start of first line
serout B.7,N2400,("put plug in ") ' output text
pause 10
endif
goto start1
start2:
if pinC.3 =1 then
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" pin 3 ") ' output text
pause 10
elseif pinC.5 =1 then
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" pin 5 ") ' output text
pause 10
elseif pinC.3 =1 and pinC.5 = 1 then
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" pin 3 pin 5 ") ' output text
pause 10
else
serout B.7,N2400,(254,192) ' move to start of first line
serout B.7,N2400,(" ") ' output text
pause 10
endif
goto start2