Go Down

Topic: How can i change pinmode during void loop? (Read 476 times) previous topic - next topic

acmiilangr

i have this code:

int SCL = 5;

void setup() {      
 pinMode(SCL, OUTPUT);
 }

void loop() {
digitalWrite (SDA_OUT,1);
delay(500);
//How can i change now the pin 5 so i can read from that? i think it doesnt work pinMode(SDA, INPUT); on this section.
}

acmiilangr

#1
Feb 11, 2010, 04:20 pm Last Edit: Feb 11, 2010, 04:40 pm by acmilangr Reason: 1
edit: Forget it. I solved my problem

Go Up