-->
Page 1 of 1

SPI Control Register on NodeMCU

PostPosted: Sat Jul 20, 2019 9:36 pm
by Buzzardbait
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: