I tried the software SPI again and removed the "NodeMCU." before the pin. Like this:
var s = new SPI();
s.setup({mosi:D7, miso:D6, sck:D5});
E.connectSDCard(s, D2);
console.log(require("fs").readdirSync());
And then i get this output. Maybe this says something to anyone?
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| 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: Cannot change pins used for flash chip
ERROR: Cannot change pins used for flash chip
ERROR: Unable to mount SD card : NOT_READY
undefined
=undefined
Also with the Hardware SPI example, SPI1 is used. int the documentation it says that there should be options for SPI1,SPI2 and SPI3.
Can it be that i should use the SPI2, because of the flash memory beeing attached to SPI1?
Is SPI2 dissabled in the firmware from the earlier post, or is it a matter of the ESP8266 not beeing able to find the SPI2?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I tried the software SPI again and removed the "NodeMCU." before the pin. Like this:
And then i get this output. Maybe this says something to anyone?
Also with the Hardware SPI example, SPI1 is used. int the documentation it says that there should be options for SPI1,SPI2 and SPI3.
Can it be that i should use the SPI2, because of the flash memory beeing attached to SPI1?
Is SPI2 dissabled in the firmware from the earlier post, or is it a matter of the ESP8266 not beeing able to find the SPI2?