It doesn't work because you're using a logical operator instead of the bitwise operator.
pincode1 = (PORTB & $0F) would return the right value.
Logical operators can only return true or false.
It doesn't work because you're using a logical operator instead of the bitwise operator.
pincode1 = (PORTB & $0F) would return the right value.
Logical operators can only return true or false.
Bookmarks