Go Down

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