Go Down

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


i have this code:

int SCL = 5;

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

void loop() {
digitalWrite (SDA_OUT,1);
//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.


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!

via Egeo 16
Torino, 10131