Pages: [1]   Go Down
Author Topic: OneWire Question  (Read 318 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All,
I have plenty of pins available. I am using 3 Maxim DS18S20 temperature sensors.
Is there any drawback to creating three instances of a OneWire class, each with its own pin assignment?

Thanks.
Jeff O'Brien
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why bother ? You can use as many as you want on one instance and one pin, they are all individually addressable.  I have 4 all on one pin.  
Logged


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i guess i had been reading some other posts related to DS18S20 and some other people seemed to be having some trouble.
thanks for the advice.
Logged

Pages: [1]   Go Up
Jump to: