Quote Originally Posted by skimask View Post
PortB is a byte value. A byte runs 0-255...
2 ^ 15 = 32,768 which is greater than 255!
I tried changing the variable, PortB to an Integer and Long with no positive results