something like that works fine for getting raw data on touch/swipe
var i2c=new I2C(); i2c.setup({scl:D34, sda:D33, bitrate:100000}); TC= function(){ i2c.writeTo(0x15,0); print(i2c.readFrom(0x15,7)); }; Bangle.on('touch', TC); Bangle.on('swipe', TC);
@enaon 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.
something like that works fine for getting raw data on touch/swipe