I printed data sent from Espruino to MCP23017 thru function ' p._w = function(r,dArr) { this.i2c.writeTo(0x20,r,dArr); print (r,dArr); return this; }; '
Comparing it with MCP23017 it was easy to write minimun code to use bank A & B as output.
Other experiences:
I'm using a power Bank using 'alway-on mode' instead of a button battery, so power wasn't the problem as 'allObjects' sujected too.
My previous design was running on Arduino, my mistake was transtlate that Arduino code to Espruino. Espruino needs other detailed commands to manage I2C (attached Arduino example)
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.
Hi Gordon,
http://microcosm.app/out/zEd6h is full working but it was not simple for me to understand how it manages I2C bus.
I printed data sent from Espruino to MCP23017 thru function ' p._w = function(r,dArr) { this.i2c.writeTo(0x20,r,dArr); print (r,dArr); return this; }; '
Comparing it with MCP23017 it was easy to write minimun code to use bank A & B as output.
Other experiences:
Thanks,
1 Attachment