Interesting idea... I think things like SPI/I2C slaves are a bit tricky because you basically need an instant reply when data is requested. Something could be added in native code I guess, or if we could think of a nice way to expose it as an API then slave support could definitely be done.
Probably the easiest way to connect them together is to use serial though - I can think of two pretty easy ways:
chain RX to TX along all the different boards
have a single wire, pulled to 3.3v with a resistor - then connect ALL RX and TX lines together and set RX to 'input' and TX to 'output_opendrain' - then every board can send messages to every other board, using a single wire.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Interesting idea... I think things like SPI/I2C slaves are a bit tricky because you basically need an instant reply when data is requested. Something could be added in native code I guess, or if we could think of a nice way to expose it as an API then slave support could definitely be done.
Probably the easiest way to connect them together is to use serial though - I can think of two pretty easy ways: