Skip to content

Added possibility to use other SPI device#5

Open
Saur0o0n wants to merge 2 commits intoenjoyneering:masterfrom
Saur0o0n:master
Open

Added possibility to use other SPI device#5
Saur0o0n wants to merge 2 commits intoenjoyneering:masterfrom
Saur0o0n:master

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