todd-herbert / heltec-eink-modules

Third-party Arduino Library for Heltec E-Ink displays
18 stars 4 forks source link

SPI pins not configurable for ESP32 #5

Closed todd-herbert closed 1 year ago

todd-herbert commented 1 year ago

did not see where to configure CLK or SDI.

This is a good note, thank you. With Arduino UNO, the SPI pins are fixed. Because of this, there has so far been no option for user to specify CLK and SDI pins. I will look into adding this as a configuration option for ESP32.

Originally posted by @todd-herbert in https://github.com/todd-herbert/heltec-eink-modules/issues/4#issuecomment-1694519784

todd-herbert commented 1 year ago

As of 4c6bde589a3ab971d82a0e729659d31f437b6f27, full SPI pinout for ESP32 can be specified with overloaded constructor. For example: QYEG0213RWS800 display( PIN_DC, PIN_CS, PIN_BUSY, PIN_SDI, PIN_CLK )

Short constructor remains available for all platforms: QYEG0213RWS800 display( PIN_DC, PIN_CS, PIN_BUSY ) With ESP32, the remaining pins will use VSPI default: SDI = 23, CLK = 18.

This functionality is pre-release, and liable to change without warning.