You don't seem to have set up the SDA and CSB lines in the code above... could that be it?
Also, I might be a bit wary of using D28/D29 - they're used as the Puck.js serial interface wires if Puck.js powers up with D29 pulled high. While you can override them with pinMode or digitalWrite, before that happens Puck.js will be using up more power than normal because it'll be running the serial port hardware all the time.
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.
You don't seem to have set up the SDA and CSB lines in the code above... could that be it?
Also, I might be a bit wary of using D28/D29 - they're used as the Puck.js serial interface wires if Puck.js powers up with D29 pulled high. While you can override them with
pinMode
ordigitalWrite
, before that happens Puck.js will be using up more power than normal because it'll be running the serial port hardware all the time.