change direction of the USB detect input
This commit is contained in:
parent
2f92805c1a
commit
64aa1808d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue