Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sweep: Add a sample ESP32 binky project using Rust #10

Open
vs4vijay opened this issue Feb 6, 2024 · 1 comment
Open

Sweep: Add a sample ESP32 binky project using Rust #10

vs4vijay opened this issue Feb 6, 2024 · 1 comment
Labels

Comments

@vs4vijay
Copy link
Owner

vs4vijay commented Feb 6, 2024

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

@vs4vijay vs4vijay added the sweep label Feb 6, 2024
Copy link
Contributor

sweep-ai bot commented Feb 6, 2024

Sweeping

75%

Actions

  • ↻ Restart Sweep

❌ Unable to Complete PR

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant