Pages: [1]   Go Down
Author Topic: D0 and D1 pins  (Read 418 times)
0 Members and 1 Guest are viewing this topic.
uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 310
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: December 14, 2012, 10:13:09 am by jonisonvespa » Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 310
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: December 14, 2012, 10:49:15 am by jonisonvespa » Logged

Pages: [1]   Go Up
Jump to: