don't use pullups

This commit is contained in:
sigil-03 2025-11-14 15:46:28 -07:00
parent 64aa1808d2
commit 7e187680f5
2 changed files with 7 additions and 1 deletions

View file

@ -17,7 +17,7 @@ impl<'a> DebouncedGPIO<'a> {
pub fn new(pin: AnyPin, system_tick_rate_hz: usize, debounce_time_ms: usize) -> Self {
// coin debounce timer (100ms)
Self {
input: Input::new(pin, Pull::Up),
input: Input::new(pin, Pull::None),
value: false,
ready: false,
active: false,

View file

@ -55,6 +55,12 @@ impl Usb {
pub fn powered(&self) -> bool {
self.usb_pin.is_high()
}
// pub fn enable(&mut self) {
// self.usb_pin.set_as_input(Pull::Up);
// }
// pub fn disable(&mut self) {
// self.usb_pin.set_as_input(Pull::None);
// }
}
pub struct Amplifier {