Output signal splitter

You can find it here:

*sorry insert image does not work

When yellow cable is HIGH

  1. Attiny
    read analog from green -> calculate -> write analog on purple
  2. Attiny
    read analog from purple -> calculate -> write analog on brown
  3. Attiny
    read analog from brown -> calculate -> write analog on blue

When yellow cable is LOW
3. Attiny
read analog from blue -> calculate -> write analog on brown
2. Attiny
read analog from brown -> calculate -> write analog on purple

  1. Attiny
    read analog from purple -> calculate -> write analog on green

Please ignore synchronization issue, I wanted to simplify things as much as possible.