update VS Code files

This commit is contained in:
2024-06-12 10:30:22 +02:00
parent 5179a79225
commit 622c0573f7
5 changed files with 33 additions and 64 deletions

View File

@ -3,7 +3,7 @@
#![no_std]
use cortex_m_rt::entry;
use embedded_hal::digital::StatefulOutputPin;
use embedded_hal::digital::{OutputPin, StatefulOutputPin};
use panic_halt as _;
use va416xx_hal::{gpio::PinsG, pac};
@ -19,7 +19,9 @@ fn main() -> ! {
let mut led = portg.pg5.into_readable_push_pull_output();
//let mut delay = CountDownTimer::new(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM0);
loop {
led.toggle().ok();
led.set_high().ok();
cortex_m::asm::delay(2_000_000);
led.set_low().ok();
cortex_m::asm::delay(2_000_000);
}
}