So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Buzzardbait
#83176 I'm trying to get SPI working between a NodeMCU and a Arduino Mega 2560. I am 99.9% confident the H/W is ok. I can see the NodeMCU(Master) transferring the data using a logic analyzer. On the slave I get ???????????? and no \n to terminate the stream.
Both are operating at a low speed 250KHz. On the Slave I can print the SPI Control Register (SPCR) to verify the settings but on the Master:
// Why doesn't this work on ESP8266?
Serial.print("SPCR(bin) = "); Serial.println(SPCR, BIN); // View the SPI Control Register (SPCR)
It tells me "SPCR not defined in this scope". WAT? :cry: