You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
Create a new directory called "demo_rust" at the root level of the repository.
Inside the "demo_rust" directory, create a new directory called "src".
Create a new file named "main.rs" inside the "src" directory.
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 projectThe text was updated successfully, but these errors were encountered: