-
Notifications
You must be signed in to change notification settings - Fork 5
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
Minimal embedded example? #118
Comments
Reading through the code it seems to me that |
howdy! it would definitely be good to have a nice example / demo with pictures that folks could pick up huh.
sorry for the low image quality but, an example on a RPI: with the pin configuration:
|
Thanks for the quick reply!
I see. Unfortunately the HAL for my uC (ESP32) has hardware-controlled CS lines and actually won't let me create SPI interfaces without specifying the CS line. Now Also I don't understand what exactly |
often as not the CS behaviour of the uC is not quite adequate for driving peripherals, in this instance you'd disable the SPI peripheral CS and just use another GPIO pin (we're working on API improvements for this in
that would be it, yep |
I understand, thank you for clarifying. Does that mean you are an embedded-hal developer? If so, would you mind if I ask you some SPI-related questions in the near future?
That makes sense. Since my uC forces me to use ehal alpha.8, I'll try to get the |
I managed to hack this crate and my HAL so both implement the SPI traits from embedded-hal 1.0.0-alpha.8. I now have a bit of working code that is at least capable of reading out the firmware version of the modem. What exactly do I have to do now to enable data transmission via say FLRC? Simply calling |
howdy, the radio configurations are a bit cursed in that some features work with different modulations and, well, some don't (#4, #37), so you have to get them right... (probably the config objects could be improved to avoid this) noting that you need to poll the configuration in the utility should show you how to configure the device, and FLRC definitely works when setup correctly. one day i should really get the integration tests back up and running for this...
sure, i am happy to help if i can! though please bear in mind i have limited time to spend on a seemingly unlimited list of tasks 🤣
absolutely, also please feel free to bump any issues / PRs if you need my attention... my github inbox is some 500 issues long |
Hello,
first up: It's nice to see that someone has already undergone the effort to write a rust crate for the SX128x chips, so thank you very much for that!
I'm trying to hack up a custom firmware for some RC modems (In particular: HappyModel ES24TX Pro) in Rust. Unfortunately the crates documentation on its own doesn't give me enough of an idea what exactly the different Pins are that I need. In particular I assume that since
Sx128x
takes acs
pin, I mustn't register that one with the SPI Interface, right?Furthermore I do have a
busy
pin, but I have no idea what to do aboutready
andsdn
. Could you elaborate on what these do, or maybe share an example that contains a coarse schematic so I can understand what this means?Thank you in advance!
The text was updated successfully, but these errors were encountered: