Game,
does your code actually set up port2 to push-pull outputs? I am not convinced that including stdio does this for you, and they may be operating as inputs or open-collector, which would not feed current to your LEDs.
try adding the line:
P2M1 = 0;
before writing to the port
n
does your code actually set up port2 to push-pull outputs? I am not convinced that including stdio does this for you, and they may be operating as inputs or open-collector, which would not feed current to your LEDs.
try adding the line:
P2M1 = 0;
before writing to the port
n