Dependancies
🌳 An outdoor LoRa-GPS tracker with an E-Ink display 🔑
Display demo sample code with V2.1 E-Ink hardware version
Dependancies
Check the E-Ink display module for the version number. Here, version 2.1 is used and the number is marked on the module.
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 Zero / SAMD21G are defined as following:
SAMD21G Pin | I/O Pin | SERCOM-ALT | Name |
---|---|---|---|
19 |
PB10 |
SERCOM4/PAD[2] |
COPI |
20 |
PB11 |
SERCOM4/PAD[3] |
SCK |
Schematic label | Arduino Zero pin name | SAMD21G pin name |
---|---|---|
EINK_BUSY | D7 | PA21 |
EINK_RST | D8 | PA06 |
EINK_DC | D9 | PA07 |
EINK_CS | D10 | PA18 |
COPI | ICSP_COPI | PB10 |
CLK | ICSP_SCK | PB11 |
CIPO | ICSP_CIPO | PA12 |
ls -al /dev/cu.usbmodem
and arduino-cli board list
. Run make
to compile and upload the code to the board.