I would like to hook up this sensor http://www.drotek.fr/shop/en/home/62-imu-10dof-mpu6050-hmc5883-ms5611.html via I2C to the espruino. Is this at all possible? If so, how can i save my js wrapper library to communicate with this sensor to the espruino SD card?
Hi, Yes, that should be possible!
Once you have created a module, you just stick it in the node_modules folder of the SD card. There's an example of what it should look like here:
HOWEVER This is likely to change - specifically in order to make modules compatible with Tessel, Firmata etc, the I2C commands may change slightly in the next few weeks.
So happy to hear that you're working on compatibility with Tessel!
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem