change direction of the USB detect input

This commit is contained in:
sigil-03 2025-11-14 15:15:03 -07:00
parent 2f92805c1a
commit 64aa1808d2

View file

@ -289,7 +289,7 @@ fn app_main(mut p: hal::Peripherals) -> ! {
// adc2
// let mut usb_detect_dc = hal::adc::Adc::new(p.ADC1, Default::default());
let mut usb_detect_pin = p.PD5;
let usb_detect_input = Input::new(usb_detect_pin, Pull::Down);
let usb_detect_input = Input::new(usb_detect_pin, Pull::Up);
let usb = Usb::new(usb_detect_input);
// println!("ADC_PIN CHANNEL: {}", adc_pin.channel().channel());