InternalError: Timeout on I2C Write BUSY #5767
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2017-06-09 by trusktr I changed it to this, at least for now: const wifi = require("EspruinoWiFi");
function getIP() {
wifi.getIP(function(err, info) {
if (err) setTimeout(getIP, 1000)
console.log('IP:', info.ip)
});
}
getIP(); Could it be better? Posted at 2017-06-09 by @gfwilliams It's not just that code that's running if you're getting that error. As it says, it's to do with I2C. It happens when you're trying to access an I2C device that isn't connected. I guess somehow you have still got the other code running. Are you sure that is all you're uploading? If the MPU6050 is still connected then you'll need to check your I2C wiring as well - that could explain a lot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-09 by trusktr
Every once in a while I get
on this code:
Do I simply need to wait then try again?
Beta Was this translation helpful? Give feedback.
All reactions