I am trying to manually set the High/Low on different pins programically for my cc2540/1. I have tried to use the individual bits of P0/P1/P2, and the more direct P2_1.
No matter how I try it, the values start as P2 = 1 and P2_1 = 0 and after
P2_1 = 1;
OR
P2 = 2;
It never changes the actual value, they stay at P2 = 1 and P2_1 = 0.
I have been able to set P0DIR correctly though.
Any advice is welcome.