Thank you Darrel

Works great !

I was studying your code in this post
http://www.picbasic.co.uk/forum/show...ight=OWPIN%3FW


Will the code parameters be the same as before mod:

OWpins VAR WORD[16] ; assign pins for OneWire commands.
OWpins(0) = $0000 ; PORTA is 0, bit 0 ; Assignments can be in any order
OWpins(1) = $0002 ; bit 2 ; Shown sequentially here for clarity
OWpins(2) = $0100 ; PORTB is 1, bit 0
OWpins(3) = $0101 ; bit 1
OWpins(4) = $0102 ; bit 2
OWpins(5) = $0103 ; bit 3
OWpins(6) = $0104 ; bit 4
OWpins(7) = $0105 ; bit 5
OWpins(8) = $0106 ; bit 6
OWpins(9) = $0107 ; bit 7
...
OWpins(15) = $0307 ; PORTD is 3, bit 7

Will the code parameters be the same as before the mod:?

Before Mod:
OWOut sn, 1, [$CC, $BE] ' Read the temperature
After Mod:
OWOut OWpins(sn), 1, [$CC, $BE] ' Read the temperature

Thank you!
and thanks for sharing your knowledge.


I have pretty much went through reading Henrik's, Bruce's, your answers to questions for
the past two weeks and it has really helped me get an understand how powerful this PBP
compiler is.

Thanks again !
Larryd