Open vs4vijay opened 8 months ago
I'm sorry, but it looks like an error has occurred due to a code validation failure. The error message is . Here were the changes I had planned:
demo_rust/src/main.rs
Create the directory structure for the Rust project and add the sample code: 1. Create a new directory called "demo_rust" at the root level of the repository. 2. Inside the "demo_rust" directory, create a new directory called "src". 3. Create a new file named "main.rs" inside the "src" directory. 4. Write the sample Rust code in "main.rs" to blink an LED on the ESP32 board:
use esp_idf_hal::prelude::*;
use esp_idf_hal::gpio::*;
use esp_idf_hal::delay::*;
fn main() {
let peripherals = Peripherals::take().unwrap();
let pins = peripherals.pins;
let mut led = pins.gpio2.into_output().unwrap();
loop {
led.set_high().unwrap();
FreeRtos::delay_ms(1000);
led.set_low().unwrap();
FreeRtos::delay_ms(1000);
}
}
Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://community.sweep.dev/.
For bonus Sweep issues, please report this bug on our community forum (tracking ID: aa39ea4631
).
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
Details
Add a sample ESP32 binky project using Rust. Make sure it compiles and generates binary. Create a directory
demo_rust/
to create project, and create github action CI pipeline to build the project