Use custom spi pins other than default on arduino mega #382
Replies: 2 comments 3 replies
-
If you're referring to Arduino Mega, that only has one SPI bus and cannot change where its pins are located. You can try a software-emulated SPI (e.g. https://github.com/MajenkoLibraries/SoftSPI), then provide that to the constructor, something along the lines of: SoftSPI mySPI(miso, mosi, sck);
SX1278 radio = new Module(cs, dio0, rst, dio1, mySPI); Also: This is not an issue - converting to discussion. Also also: Please don't open issues for things that are not ... well ... issues. That's what discussions are for. |
Beta Was this translation helpful? Give feedback.
-
was busy since your reply, thanks for same, but soft spi configurationfor lora sx1278 didnt work...i mean lora wasnt initialized... |
Beta Was this translation helpful? Give feedback.
-
How can I use custom spi pins on mega instead of default ones as these are occupied by lcd screen? Have no idea,
Regards
Anand Pathak
India
Beta Was this translation helpful? Give feedback.
All reactions