Go Down

Topic: D0 and D1 pins (Read 649 times) previous topic - next topic

jonisonvespaa

Dec 14, 2012, 04:05 pm Last Edit: Dec 14, 2012, 04:13 pm by jonisonvespa Reason: 1
hi,
just wondering how to use these pins, if i wanted to use D1 id have to turn off serial print, and the pin would behave normally?
and just wondering how D0 behaves, can i use this pin for high/low outputs?
thanks

retrolefty


hi,
just wondering how to use these pins, if i wanted to use D1 id have to turn off serial print, and the pin would behave normally?

Yes, you just have to not use any serial commands in your sketch, so if no serial.begin() statement then you are free to use the digital pins 0 and 1 as you please. However keep in mind that if you physically wired anything to those two pins you may not be able to upload new sketches from the IDE unless you first electrical disconnect whatever you do have wired to those two pins.

and just wondering how D0 behaves, can i use this pin for high/low outputs?

Same applies.
Lefty

thanks

retrolefty


hi,
just wondering how to use these pins, if i wanted to use D1 id have to turn off serial print, and the pin would behave normally?

Yes, you just have to not use any serial commands in your sketch, so if no serial.begin() statement then you are free to use the digital pins 0 and 1 as you please. However keep in mind that if you physically wired anything to those two pins you may not be able to upload new sketches from the IDE unless you first electrical disconnect whatever you do have wired to those two pins.

and just wondering how D0 behaves, can i use this pin for high/low outputs?

Same applies.
Lefty

thanks

jonisonvespaa

#3
Dec 14, 2012, 04:47 pm Last Edit: Dec 14, 2012, 04:49 pm by jonisonvespa Reason: 1
thanks,  ive already downloaded the sketch into the ic and its sitting in a pcb, i was getting a bit short on pins thats all, had trouble with using these pins in  the past just didnt  know you had to turn off serial

Go Up