Yes that should be it, so
should work.
Yes that should be it, so
should work.
So do I put this in the main.c file.
This is the build
Compiling .pio\build\stc15w408as\src\main.rel
src\main.c:29: error 1: Syntax error, declaration ignored at ‘P3M1’
src\main.c:29: syntax error: token → ‘=’ ; column 12
src\main.c:30: error 1: Syntax error, declaration ignored at ‘P3M0’
*** [.pio\build\stc15w408as\src\main.rel] Error 1
Do I need MOV or just as you have put it?
I have been putting the Code P1M1 = 0xA0 etc in the wrong place. (before void main() ) that’s why it didn’t work. I have now put the code after void main() and it works fine, tested the pins with a scope to prove it. So will be able to select which pins I need for input only and the other types as well. Thank you for your help.