-
-
Notifications
You must be signed in to change notification settings - Fork 56
Support for more than 3 readers #89
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
Conversation
I'm not sure I've done anything explicitly wrong as it builds and flashes....but I thought I'd ask, whats the correct way to setup the environment for this PR (whilst it hasn't been merged yet)? The steps I followed:
|
|
Could you please add some logs inside the |
|
added some comment: and logs is showing this: |
|
Unsure if it's related (as it hasn't fixed the issue) but I noticed in |
|
@kanflo I managed to get it working with some relatively major changes... I followed the rabbit hole from my last comment above and realised ncs init wasn't correct and then realised it never actually gets called. I confirmed this by printing the gpio_get_level in both pre_cb and post_cb and it always stayed low.... This led me to try and figure out where init should be called... Not sure the best way to action this but what I did was: Called the init here in and finally in I'm curious how you have yours working in your environment, do you by some chance have a more up to date local copy? |
|
Well that was a huge omission on my part, sorry about that. I had the nCS GPIO setup in the general GPIO setup for LEDs and stuff in my app. Not calling |
|
@kanflo I'm relatively new to this, what would be the best approach here? |
|
You can fork my branch, add your changes and then make a PR. All referencing will be done automatically. I highly recommend you try it, it's a fun thing to make one's first contribution to someone else's project :) |
|
PR continued in #90 |
This PR adds support for more than three readers by allowing a regular driver controlled GPIO as chip select. When using eg. SPI3, the nCS signals are hardware controlled and the ESP32 only supports 3 of them on eg. SPI3.