I'm afraid not. It might make more sense to implement the I2C scanner purely in JavaScript - all you need to do is clock out maybe 10 bits per device?
Just to add, software I2C (var i2c=new I2C();i2c.setup(...)) might be faster...
var i2c=new I2C();i2c.setup(...)
@Gordon started
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.
I'm afraid not. It might make more sense to implement the I2C scanner purely in JavaScript - all you need to do is clock out maybe 10 bits per device?
Just to add, software I2C (
var i2c=new I2C();i2c.setup(...)
) might be faster...