So what happens when you try to use additional SPI devices and I2C together in js code (as these are sharing same hw resources and cannot be used concurrently)? Does the setup() fail for the SPI interface when it is already used by matching I2C and vice versa? There are in total 3 shared HW interfaces SPI0/TWI0, SPI1/TWI1 and SPI2.
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.
So what happens when you try to use additional SPI devices and I2C together in js code (as these are sharing same hw resources and cannot be used concurrently)? Does the setup() fail for the SPI interface when it is already used by matching I2C and vice versa? There are in total 3 shared HW interfaces SPI0/TWI0, SPI1/TWI1 and SPI2.