SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By largofluid
I just finished a project that utilizes an ESP8266 Thing (RL-13231 -- aka NOT the Dev version) to drive a Waveshare eInk display with an SPI interface.

There seems to be some confusion w.r.t. what pin can be used for CS when doing SPI communication using the ESP8266 Thing.

The ESP8266 Thing Hookup guide states:
The MISO, MOSI, and SCLK SPI pins are hard-coded and can’t be moved, they are:

Pin Number SPI Function
15 CS ... uino-addon

Note that this only states that MISO, MOSI and SCLK are hard-wired, but CS is not mentioned. Yet the table suggests you have to use pin 15 for CS, which is not available on any breakout header.

Googling around, it seems that a lot of folks run into this issue (being unable to locate pin 15 on this board) when using SPI.

However, I could get things to work by mapping CS to pin 4, which makes me assume that CS is NOT hardwired to pin 15 (as the table seems to imply), but can be assigned to any digital output capable pin.

Just wanted to post this, hoping that this will save other noobs like myself some grief...

Full mapping that I used for the eInk display in conjunction with the GxEPD library:

BUSY --> 12, RST --> 0, DC --> SDA, CS --> 4, CLK --> SCL, DIN --> 13 (MOSI)

I also added "SPI.setFrequency(1000000)" to the setup function of my Arduino sketch, FWIW...
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]