Skip to content

Commit a04a198

Browse files
sethpgithub-actions[bot]
authored andcommitted
chore(fix): cargo fix
1 parent c614586 commit a04a198

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/gpio_interrupt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ extern crate alloc;
77
use esp32c3_hal::prelude::*;
88
use esp32c3_hal::{
99
clock::ClockControl,
10-
gpio::{Event, IO},
10+
gpio::{IO},
1111
interrupt,
1212
peripherals::{self, Peripherals},
1313
timer::TimerGroup,
1414
Rtc,
1515
};
1616
use esp_backtrace as _;
17-
use esp_println::println;
18-
use vgaterm::gpio::{interrupt_disable, pin_interrupt};
17+
18+
1919

2020
core::arch::global_asm!(".global _heap_size; _heap_size = 0x8000");
2121

@@ -66,7 +66,7 @@ fn main() -> ! {
6666

6767
let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
6868

69-
let mut led = io.pins.gpio5.into_push_pull_output();
69+
let _led = io.pins.gpio5.into_push_pull_output();
7070

7171
// fn callback<T>(_: T) {
7272
// esp_println::println!("GPIO interrupt");

src/bin/vgaterm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use esp32c3_hal::prelude::*;
99
use esp32c3_hal::timer::TimerGroup;
1010
use esp32c3_hal::{
1111
clock::{ClockControl, CpuClock},
12-
peripherals::UART0,
1312
};
1413
use esp32c3_hal::{gpio::IO, peripherals::Peripherals, Rtc};
1514
use esp_backtrace as _;

0 commit comments

Comments
 (0)