Changing Address after defining #119
-
I set up sensor slaves with attiny84's over onewire with the OneWire Hub Lib. I got all to run, but i am hanging on one problem. Before the setup function i have to define the address of the sensors. The idea is to set a part of the address with Dipswitches. The function of Dipswitches is running, no problem. So it could be possible to set the address without changing code in the setup function. Is there any chance to redefine the address in the Setup Routine? I have not found a function in the Library to do this. Kind regards andiatbaden |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
something like that should work, basic c tricks. hacked together and untested though!
|
Beta Was this translation helpful? Give feedback.
-
Hello Orgua, thank you very much for your time. It is working!! Kind regards andiatbaden |
Beta Was this translation helpful? Give feedback.
-
Sorry, variant 1 works |
Beta Was this translation helpful? Give feedback.
something like that should work, basic c tricks. hacked together and untested though!