BiPOM Forum

General => Micro-IDE => Topic started by: blimon on March 31, 2005, 12:25:04 pm

Title: how to use port pin as a variable?
Post by: blimon on March 31, 2005, 12:25:04 pm
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?
Title: Re: how to use port pin as a variable?
Post by: vitaliy on April 01, 2005, 12:48:48 am
setbit(SDA);
setbit(SCL);
clrbit(SDA);
clrbit(SCL);