File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ extern crate alloc;
77use esp32c3_hal:: prelude:: * ;
88use esp32c3_hal:: {
99 clock:: ClockControl ,
10- gpio:: { Event , IO } ,
10+ gpio:: { IO } ,
1111 interrupt,
1212 peripherals:: { self , Peripherals } ,
1313 timer:: TimerGroup ,
1414 Rtc ,
1515} ;
1616use esp_backtrace as _;
17- use esp_println :: println ;
18- use vgaterm :: gpio :: { interrupt_disable , pin_interrupt } ;
17+
18+
1919
2020core:: 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");
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use esp32c3_hal::prelude::*;
99use esp32c3_hal:: timer:: TimerGroup ;
1010use esp32c3_hal:: {
1111 clock:: { ClockControl , CpuClock } ,
12- peripherals:: UART0 ,
1312} ;
1413use esp32c3_hal:: { gpio:: IO , peripherals:: Peripherals , Rtc } ;
1514use esp_backtrace as _;
You can’t perform that action at this time.
0 commit comments