so geht es,
Code:
Multiple 1-wire devices on different pins are supported.
To use this you must specify the port and pin that are used for the communication.
The 1wreset, 1wwrite and 1wread statements will work together when used with the old syntax. And the pin can be configured from the compiler options or with the CONFIG 1WIRE statement.
The syntax for additional 1-wire devices is :
1WRESET port , pin
1WWRITE var/constant, bytes, port , pin
var = 1WREAD(bytes, port, pin) ,for reading multiple bytes
siehe Bascom Help "1wwrite"
Lesezeichen