When I have my Wifi plugged in with USB and I load the code through the IDE, everything works fine. The moment I save() it breaks and I get the I2C error above. Where should I begin to hunt down what's causing the issue?
Uncaught InternalError: Timeout on I2C Write BUSY
at line 1 col 172
...sh(0);this.i2c.writeTo(36,b);b=this.i2c.readFrom(36,6);b[4]&...
^
in function "cmd" called from line 1 col 18
this.cmd([74,1,0]);var d=this;setTimeout(function(){var c=d....
^
in function "findCards" called from line 69 col 6
});
^
in function called from system
I have also attached an image of the NFC chip I'm using. It is wired as follows:
NFC -> Espruino
GND -> -
VCC -> 3.3v
SDA -> B3
SCL -> B10
I have looked at some of the Troubleshooting guides and they suggest:
Remove all console.log/print statements. I think I have done so.
Setting USB.setConsole() during onInit(). That changed nothing.
Any pointers would be greatly appreciated, I'm very new to all of this. Thanks in advance!
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.
Hello,
When I have my Wifi plugged in with USB and I load the code through the IDE, everything works fine. The moment I
save()
it breaks and I get the I2C error above. Where should I begin to hunt down what's causing the issue?Full code
Excerpt of code that is raising an error
Full Error Message:
I have also attached an image of the NFC chip I'm using. It is wired as follows:
I have looked at some of the Troubleshooting guides and they suggest:
console.log
/print
statements. I think I have done so.USB.setConsole()
duringonInit()
. That changed nothing.Any pointers would be greatly appreciated, I'm very new to all of this. Thanks in advance!
1 Attachment