NodeMCU ESP8266 SDCard issue

Posted on
  • Hi
    First of all - sorry for bad English

    I try to connect SDCard to NodeMCU with Espruino 1.96 firmware with this manual

    function onInit() {
      // initialise SPI1 for SDCard module
      SPI1.setup({mosi:NodeMCU.D6, miso:NodeMCU.D7, sck:NodeMCU.D5});
      E.connectSDCard(SPI1, NodeMCU.D0 /*CS*/);
      console.log(require("fs").readdirSync())­;
      // ...
    }
    

    bu as result - i see this in console:

    Uncaught Error: Function "connectSDCard" not found!
    at line 2 col 5
      E.connectSDCard(SPI1, NodeMCU.D0 /*CS*/);
        ^
    in function called from system
    

    what i do wrong?
    thanks

  • For this you need custom build with SD and file system support. It's not there as standard for ESP8266. Some info which may help in this recent thread
    http://forum.espruino.com/conversations/­318384/

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

NodeMCU ESP8266 SDCard issue

Posted by Avatar for Joshua_Sturmvogel @Joshua_Sturmvogel

Actions