You are reading a single comment by @DrAzzy and its replies. Click here to read the full conversation.
  • There is no built-in AT24 module.

    If you put require("AT24") on the right side of the IDE, and tell it to send, there are only three places it could get the AT24 module from.

    Either it's using the one from espruino.com/modules, or you have an AT24.js on an SD card and the board supports that (I don't know if that board does), or you have the sandbox enabled and an AT24.js or AT24.min.js in the modules directory in your espruino sandbox directory.

    Please make sure you are using the version from espruino.com/modules (you can do require("http://espruino.com/modules/AT24.js").connect(...) from the right side of the IDE, and it will make sure to get it from there - though I suspect that's already where it's coming from; i'd be very surprised if there were weird versions of my module floating around).

    (note - if you examine the code, it won't look the same as in the .js , because the IDE sends the minified versions of the modules (.min.js ), to reduce memory use)

    I would definitely update firmware to latest available, though I would expect it to work on v72 (but not anything before that).

    Finally, if all that doesn't change behavior, can I see a console.log(eeprom.a)? That should print out the js function that's somehow returning native function.

About

Avatar for DrAzzy @DrAzzy started