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

Added possibility to use other SPI device #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Saur0o0n
Copy link

This is small change, that does not affect currently working scripts, that allow to use another SPI device - except default one.
ESP32 has three of them - if you already use default SPI for something else - there was no way to use any other in this library.
With this change, you can do nothing - and everything work's as before, or you can declare new SPI device and pass it to the object.

SPIClass *ESP32_SPI = new SPIClass(HSPI);
/* start MAX31855 */
myMAX31855.begin(ESP32_SPI);

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.

1 participant