Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

full customisation of pins #70

Open
matphillips opened this issue Feb 17, 2021 · 2 comments
Open

full customisation of pins #70

matphillips opened this issue Feb 17, 2021 · 2 comments

Comments

@matphillips
Copy link

I have a couple of epaper displays that are housed in a 3d printed enclosure, but the enclosure is glued shut. the MOSI pin is connected to ESP pin 23.
As such, the display cant be used with this software because it wants MOSI on 13,14 or 19.

Is there a way to customise the pin mappings?

@sidoh
Copy link
Owner

sidoh commented Feb 18, 2021

Hey @matphillips,

I was originally under the impression that the SPI pins were not configurable on the ESP32, but it's sounding like that's not true.

Presently not a way to customize SPI pins beyond selecting one of the busses (HSPI/VSPI), but would be happy to add a way or collaborate on a PR.

If you have working examples of GxEPD2 sketches using the non-standard pins that'd be a big help.

@matphillips
Copy link
Author

Works with the standard GxEPD2_32 library using Arduino IDE, if I remember right, the pins are defined by the board definition files, and do seem to change a bit between them.
Also works with ESPHome with the platform set to 'waveshare_epaper' and defining the spi pins in the yaml file to whatever is needed.

Pin 23 is the MOSI pin for quite a few esp32 boards it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants