Hi all. First time here.
I am writing a program to control my trainset. I need 3 mega boards. I have had a quick read re linking the boards (I2C).
However I can’t find how to do just the basics.
I want the master to gather inputs only. Then the 2 slaves to read the master (or the master broadcast to the slaves).
Then I would think it’s easier to write these inputs to internal bits in each of the slaves then undertake Boolean and drive their own out puts. There is no need to do any read back to the master from the slaves.
Can anyone assist.
Ie the master reads the state of say 30 digital inputs. (digitalRead)
The slave(s) receive these inputs.
Convert them to an internal bit (I think this will then be easier to write the 1000 lines of code for each one)
Then drive there own digital out put (digitalRead)