You are reading a single comment by @barrier and its replies.
Click here to read the full conversation.
-
That change to the code was the answer. The MPU_6050 module is working as local module now, and I can edit it. Thansks @AkosLukacs
That change to the code was the answer. The MPU_6050 module is working as local module now, and I can edit it. Thansks @AkosLukacs
That's an issue with default parameter values. Online, the actual code uploaded by the IDE is the minified one but that doesn't have the default parameter value.
As a workaround, change the
MPU6050.prototype.setMemoryBank = function(bank, prefetchEnabled=false, userBank=false) {
line toMPU6050.prototype.setMemoryBank = function(bank, prefetchEnabled, userBank) {