• using this:

    function onInit() {
      var s = new SPI();
      E.connectSDCard(s, NodeMCU.D4);
      s.setup({mosi:NodeMCU.D13, miso:NodeMCU.D12, sck:NodeMCU.D14});
      // see what's on the device
      console.log(require("fs").readdirSync())­;
    }
    
    onInit();
    

    i still get the same output:

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v86.113 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 1MB:512/512, manuf 0xe0 chip 0x4014
    >echo(0);
    ERROR: Unable to mount SD card : NOT_READY
    undefined
    =undefined
    > 
    
About