Hello,
In this Superhouse.tv sketch for the relay 8 boards, Jon Oxer uses 2 relay 8 boards. The addresses are 0x20 and 0x21, but I am having difficulty understanding how the code works, as the 2nd board (0x21) is never really addressed... ->
// Set addressing style
Wire.beginTransmission(shieldAddress);
Wire.write(0x12);
Wire.write(0x20); // use table 1.4 addressing
Wire.endTransmission();
But I was wondering should there be a line for "Wire.write(0x21); // use table 1.4 addressing" ?
Note: Even without the line, both relays work and all outputs are independent, I am just very puzzled about why one shield can be mentioned but not the other, and this would come into play as I add relay shields.
Can anyone help me break this down?
Question about sketch, addressing boards.
- Attachments
-
- superhouse original.txt
- (10.72KiB)Downloaded 241 times