Could the Espruino be made into an I2C slave device? #4188
Replies: 1 comment
-
Posted at 2014-10-26 by @gfwilliams 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:
Posted at 2014-10-26 by user7114
Perfect, if it could be done. Our programs are so large that if we could multi-process between Espruinos it would be a great help. Posted at 2014-10-27 by mhoneywill The STM supports a special Half duplex mode in the UART see section 27.3.10 in the reference manual, this would save you a port line. Also this might stop you receiving what you transmit. Single-wire half-duplex communication The USART can be configured to follow a single-wire half-duplex protocol. In single-wire Posted at 2014-10-28 by @gfwilliams Sounds good - it's pretty easy to flip that bit using the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-10-26 by user7114
If so, how could this be done? Code examples?
Since there will be a lower cost Espruino/Espruini coming out, it would be nice if multiple Espruinos could be linked together with two wires.
Beta Was this translation helpful? Give feedback.
All reactions