Dependancies
Pre-requisites
Buy the components
Check the version of the Waveshare module and use the example code for version 1 and version 2 accordingly.
The 4 non-SPI pins are defined in epdif.h
file:
#define RST_PIN 8
#define DC_PIN 9
#define CS_PIN 10
#define BUSY_PIN 7
The SPI pins for Arduino M0 / SAMD21G are defined as following:
SAMD21G Pin | I/O Pin | SERCOM-ALT | Name |
---|---|---|---|
19 |
PB10 |
SERCOM4/PAD[2] |
MOSI |
20 |
PB11 |
SERCOM4/PAD[3] |
SCK |
Arduino Zero | Waveshare E-Ink module | SAMD21G |
---|---|---|
D7 | BUSY | PA21 |
D8 | RST | PA06 |
D9 | DC | PA07 |
D10 | CS | PA18 |
CLK | SCK on ICSP connector | PB11 |
DIN | COPI on ISCP connector | PB10 |