You're welcome Larryd.
Yes, the rest of the prarameters are still the same.
Only the pin assignment method changes.
I had forgotten about that thread.
But after looking at it again, and since you're using DS1820's ... You might want to set the pins in EEPROM.
Then the pin assignments can be changed later at Run-Time via a menu or serial commands.
Maybe somthing like ...You'll need PBP 2.60 or later.Code:OWpins VAR WORD[10] ; default pins for OneWire commands. Sensor0 DATA WORD $0000 ; PORTA.0 Sensor1 DATA WORD $0001 ; 1 Sensor2 DATA WORD $0100 ; PORTB.0 Sensor3 DATA WORD $0101 ; 1 Sensor4 DATA WORD $0103 ; 3 Sensor5 DATA WORD $0200 ; PORTC.0 Sensor6 DATA WORD $0201 ; 1 Inside DATA WORD $0204 ; 4 Outside DATA WORD $0205 ; 5 Bedroom DATA WORD $0206 ; 6 Idx VAR BYTE Addr VAR WORD Addr = Sensor0 FOR Idx = 0 TO 9 ; Initialize OW pins from EEPROM READ Addr + Idx<<1, WORD OWpins(Idx) NEXT Idx




Bookmarks