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

One SPI for LoRa and SD? #20

Open
jdede opened this issue Feb 22, 2024 · 1 comment
Open

One SPI for LoRa and SD? #20

jdede opened this issue Feb 22, 2024 · 1 comment
Assignees
Labels
MoleNetv6 Everything related to the MoleNetv6 hardware

Comments

@jdede
Copy link
Member

jdede commented Feb 22, 2024

Right now, we use two SPI for the SD and the LoRa. Is it possible to use a shared SPI? Please evaluate:

  • Any drawbacks regarding performance?
  • SPI speed compatible?
  • Other restrictions?

Maybe we can combine MOSI, MISO, SCK of both and get three additional pins for the next board?

@jdede jdede added the MoleNetv6 Everything related to the MoleNetv6 hardware label Feb 22, 2024
@B00mb0x
Copy link
Collaborator

B00mb0x commented Feb 22, 2024

  • Other restrictions?
    

The builtin SDCard library doesn't return the SPI object. So in order to use SD and LoRa on the same SPI you have to either sideload an old SDCard library written in micropython or terminate the SPI connection after each usage.

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

No branches or pull requests

4 participants