mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 12:11:00 +00:00
BUSY = GPIO3; RST = GPIO2; DC = GPIO1; CS = GPIO7 (SS); CLK = GPIO4 (SCK); DIN = GPIO6 (MOSI)
This commit is contained in:
@@ -25,6 +25,15 @@
|
|||||||
|
|
||||||
|
|
||||||
//#elif defined(ESP32C3)
|
//#elif defined(ESP32C3)
|
||||||
|
/* ========================================================
|
||||||
|
DO NOT CHANGE THE ASSIGNED PINS BELOW
|
||||||
|
BUSY = GPIO3
|
||||||
|
RST = GPIO2
|
||||||
|
DC = GPIO1
|
||||||
|
CS = GPIO7 (SS)
|
||||||
|
CLK = GPIO4 (SCK)
|
||||||
|
DIN = GPIO6 (MOSI)
|
||||||
|
*/
|
||||||
GxIO_Class io(SPI, /*CS=5*/ 7, /*DC=*/ 1, /*RST=*/ 2); // arbitrary selection of 17, 16
|
GxIO_Class io(SPI, /*CS=5*/ 7, /*DC=*/ 1, /*RST=*/ 2); // arbitrary selection of 17, 16
|
||||||
GxEPD_Class display(io, /*RST=*/ 2, /*BUSY=*/ 3); // arbitrary selection of (16), 4
|
GxEPD_Class display(io, /*RST=*/ 2, /*BUSY=*/ 3); // arbitrary selection of (16), 4
|
||||||
//GxIO_Class io(SPI, SS, 22, 21);
|
//GxIO_Class io(SPI, SS, 22, 21);
|
||||||
|
Reference in New Issue
Block a user