Pages: [1]   Go Down
Author Topic: How can i change pinmode during void loop?  (Read 413 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 250
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
}
Logged

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 250
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

edit: Forget it. I solved my problem
« Last Edit: February 11, 2010, 10:40:50 am by acmilangr » Logged

Pages: [1]   Go Up
Jump to: