Go Down

Topic: How can i change pinmode during void loop? (Read 574 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy