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

SPI.h #2

Open
elijah84 opened this issue Sep 25, 2016 · 5 comments
Open

SPI.h #2

elijah84 opened this issue Sep 25, 2016 · 5 comments

Comments

@elijah84
Copy link

Can you explain your pin/port assignments in the subject file? I am trying to use your code and it seems that they correspond to a Teensy 1.0 core and NOT 3.1.

@gyaresu
Copy link
Owner

gyaresu commented Nov 10, 2016

Hi! Sorry I didn't see this earlier.

Can I still help you with this? I am using a Teensy 3.1 and it does work for me.

@elijah84
Copy link
Author

No its cool, I managed to figure it out from the following posting (Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR) But if you have time, I was trying to adapt your code to run two RF1101se's from a single teensy, which was causing issues. I thought it would be simple since your code is in C++, meaning if I create a second CC1101 class object it should work, but there are some details about the SPI interface of SS and GD0 and/or public or private variables which i think are causing it to fail. see attached and let me know what you think.
workspace.zip

@gyaresu
Copy link
Owner

gyaresu commented Nov 16, 2016

Hey @elijah84
Samy recommended ditching the SPI library that's included with panstamp so I'm going to get address filtering working and then work on using default Arduino SPI lib. That should make dual SPI devices easier to implement.

@SimenDeath
Copy link

I would also love to have some lib for teensy 3.x with 2 cc1101 modules, anyway thanks for sharing @elijah84

@sorscode
Copy link

I realize this is old, but will post anyways. If you look at my github, I have full SPI working.

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

No branches or pull requests

4 participants