
https://www.youtube.com/watch?v=G1XbFfA6tdY
Ultra simple comms - it's just measuring the length of a "pulse" sent from one to another, and using that number as the data.
Pin 1 is output
Pin 0 is input with internal pullups disabled
and a "pull down" resistor across pin 0 and GND
Only one bug has a battery in it, one powers the other via the bottom header
- this helps greatly with synchronization too, since they are both turned on at the same time.
http://www.codebug.org.uk/explore/codeb ... bug-comms/
No doubt needs a better protocol and sync to be of more use,
but I wanted the first sketch to be short and simple (KISS)