This pull request adds a SPI parameter to the Adafruit_EPD hardware SPI constructor. It allows an Adafruit_EPD subclass the option of working on a secondary SPI bus. The change should be pretty minimal and backwards-compatible; the initializer defaults to the main SPI, and no code changes are necessary for any of the existing display classes (unless you want them to opt in to this functionality, which may be an edge case for most folks).
This change allows a user of the library to create their own Adafruit_EPD subclass that works on the secondary SPI bus (like I've done here).
This pull request adds a SPI parameter to the Adafruit_EPD hardware SPI constructor. It allows an Adafruit_EPD subclass the option of working on a secondary SPI bus. The change should be pretty minimal and backwards-compatible; the initializer defaults to the main SPI, and no code changes are necessary for any of the existing display classes (unless you want them to opt in to this functionality, which may be an edge case for most folks).
This change allows a user of the library to create their own Adafruit_EPD subclass that works on the secondary SPI bus (like I've done here).