For situations like that you need a macro
Macro lmotfwd portc.0 = on portc.1 = off End Macro
I just forgot to use set. I ereased the post asap when I realised. What is the difference to a macro ie prog mem ?
#define lmotfwd set portc.0 off : set portc.1 on #define lmotrev set portc.0 on : set portc.1 off #define lmotstop set portc.0 off : set portc.1 off #define rmotfwd set portc.2 off : set portc.3 on #define rmotrev set portc.2 on : set portc.3 off #define rmotstop set portc.2 off : set portc.3 off
Log in to post a comment.
Last edit: stan cartwright 2020-05-27
For situations like that you need a macro
Macro lmotfwd
portc.0 = on
portc.1 = off
End Macro
I just forgot to use set. I ereased the post asap when I realised.
What is the difference to a macro ie prog mem ?