Skip to content

Conversation

muman613
Copy link
Contributor

The existing example contains some issues which could cause confusion.

Looking at line #35 it is clear that the commented line should be calling the begin method of vspi and not hspi. By using preprocessor symbols it makes the code more readable, and being able to control whether the SPI bus standard pins are used or the alternate pins by setting a symbol makes it easier.

Also the setting of the SS pins to output now is easier, and also the raising and lowering of the SS lines during sending is a lot easier and clearer.

Please consider this PR for merging.

* Utilize prepoc symbols for SPI pins
* Adjusts for GPIO pins when ALTERNATE_PINS is set
@me-no-dev me-no-dev merged commit 579e04b into espressif:master Jan 20, 2020
@me-no-dev
Copy link
Member

merged :)

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

Successfully merging this pull request may close these issues.

2 participants