What Best way to add sample for esp-idf-hal without loosing the context, cargo, documenation #40
Replies: 0 comments 3 replies
-
I guess you opened this in the wrong repo - this is the bare-metal HAL. One option might be to keep your repo as is and add it to: https://github.com/esp-rs/awesome-esp-rust |
Beta Was this translation helpful? Give feedback.
-
I also have a version of the capacitance sensor that only requires 1 pin. It was tough to get working in Rust because of some default config settings. Once I got the default config settings to turn off logging every time pin direction changes it started working just as designed. The problem with the rust ecosystem is that information was incredibly difficult to find. So bad that I had given up and gone back to C. That is an area where embedded rust must improve or it will remain a dabbling experience. The new version is https://github.com/joeatbayes/embedded-rust-examples/tree/main/ex-gpio-change-pin-direction-var-cap-read-1-pin It again shows a few things that were not easily found in other examples like using the changing pin direction in a real use case. |
Beta Was this translation helpful? Give feedback.
-
I have a sample app where I had to pull together several things that were not clearly shown in the existing samples. https://github.com/joeatbayes/embedded-rust-examples/tree/main/ex-gpio-measure-time-to-change-high-to-low The problem is the code for this is a lot more useful if you keep the readme file and images to go along with it. Is there a way to add all of them as a unit to esp-idf-hal examples directory. It looks from the git repo that only the rust source is there. If we cannot put them there then where is a better place to put them?
Note this sample shows the following:
- Measure elapsed time
- Measure variable capacitance
- Detect change in GPIO state
- Demonstrate Open Drain high-impedance pins
- Drive I/O pin high
- Delay for a specific duration
- Read GPIO pin status
- Change OpenDrive GPIO pin mode between Drain and high impedance
- Oversampling to improve reading stability
Beta Was this translation helpful? Give feedback.
All reactions