see pbp help under Numeric Constants
in this particular case 0 and 1 binary are the same as 0 and 1 decimal - so delete the percent sign. you need to find out why this is happening. Problem with cut and paste maybe?PICBasic allows numeric constants to be defined in the three bases: decimal, binary and hexadecimal. Binary values are defined using the prefix '%' and hexadecimal values using the prefix '$'. Decimal values are the default and require no prefix.
Example
100 ' Decimal value 100
%100 ' Binary value for decimal 4
$100 ' Hexadecimal value for decimal 256
I'm running v3.0.7.1




Bookmarks