General > Micro-IDE
how to use port pin as a variable?
(1/1)
blimon:
for example, i have
#define SCL P1.6
#define SDA P1.7
i want this line to compile-->> SDA = SCL = 1;
what else must I do to use SCL and SDA as a variable?
anyone?
vitaliy:
setbit(SDA);
setbit(SCL);
clrbit(SDA);
clrbit(SCL);
Navigation
[0] Message Index
Go to full version