pin tester
bob000555
Posts: 5
Can someone help me with this program. Its ment to test pins, pins 0 and 1, 2 and 3, 4 and 5, ect. are wired together. If the pins are bad it shoud debug sayng so but even when the wirs betwen the pins are removed the debug still sayas evry thing is good. Can anyone help heres the program.
' {$STAMP BS2}
' {$PBASIC 2.5}
INPUT 1
INPUT 3
INPUT 5
INPUT 7
INPUT 9
INPUT 11
INPUT 13
INPUT 15
HIGH 0
IF (IN1 = 1) THEN DEBUG "pins 0 and 1 are good "
IF (IN1 = 0) THEN DEBUG "pin(s) 0 and/or 1 are bad "
HIGH 2
IF (IN3 = 1) THEN DEBUG "pins 2 and 3 are good "
IF (IN3 = 0) THEN DEBUG "pin(s) 2 and/or 3 are bad "
HIGH 4
IF (IN5 = 1) THEN DEBUG "pins 4 and 5 are good "
IF (IN5 = 0) THEN DEBUG "pin(s) 4 and/or 5 are bad "
HIGH 6
IF (IN7 = 1) THEN DEBUG "pins 6 and 7 are good "
IF (IN7 = 0) THEN DEBUG "pin(s) 6 and/or 7 are bad "
HIGH 8
IF (IN9 = 1) THEN DEBUG "pins 8 and 9 are good "
IF (IN9 = 0) THEN DEBUG "pin(s) 8 and/or 9 are bad "
HIGH 10
IF (IN11 = 1) THEN DEBUG "pins 10 and 11 are good "
IF (IN11 = 0) THEN DEBUG "pin(s) 10 and/or 11 are bad "
HIGH 12
IF (IN13 = 1) THEN DEBUG "pins 12 and 13 are good "
IF (IN13 = 0) THEN DEBUG "pin(s) 12 and/or 13 are bad "
HIGH 14
IF (IN15 = 1) THEN DEBUG "pins 14 and 15 are good "
IF (IN15 = 0) THEN DEBUG "pin(s) 14 and/or 15 are bad "
' {$STAMP BS2}
' {$PBASIC 2.5}
INPUT 1
INPUT 3
INPUT 5
INPUT 7
INPUT 9
INPUT 11
INPUT 13
INPUT 15
HIGH 0
IF (IN1 = 1) THEN DEBUG "pins 0 and 1 are good "
IF (IN1 = 0) THEN DEBUG "pin(s) 0 and/or 1 are bad "
HIGH 2
IF (IN3 = 1) THEN DEBUG "pins 2 and 3 are good "
IF (IN3 = 0) THEN DEBUG "pin(s) 2 and/or 3 are bad "
HIGH 4
IF (IN5 = 1) THEN DEBUG "pins 4 and 5 are good "
IF (IN5 = 0) THEN DEBUG "pin(s) 4 and/or 5 are bad "
HIGH 6
IF (IN7 = 1) THEN DEBUG "pins 6 and 7 are good "
IF (IN7 = 0) THEN DEBUG "pin(s) 6 and/or 7 are bad "
HIGH 8
IF (IN9 = 1) THEN DEBUG "pins 8 and 9 are good "
IF (IN9 = 0) THEN DEBUG "pin(s) 8 and/or 9 are bad "
HIGH 10
IF (IN11 = 1) THEN DEBUG "pins 10 and 11 are good "
IF (IN11 = 0) THEN DEBUG "pin(s) 10 and/or 11 are bad "
HIGH 12
IF (IN13 = 1) THEN DEBUG "pins 12 and 13 are good "
IF (IN13 = 0) THEN DEBUG "pin(s) 12 and/or 13 are bad "
HIGH 14
IF (IN15 = 1) THEN DEBUG "pins 14 and 15 are good "
IF (IN15 = 0) THEN DEBUG "pin(s) 14 and/or 15 are bad "
Comments
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?
Newzed@aol.com
·
I wonder if anybody makes such a thing...
Here is a picture of one.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?
Newzed@aol.com
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?
Newzed@aol.com
·