don't use pullups
This commit is contained in:
parent
64aa1808d2
commit
7e187680f5
2 changed files with 7 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ impl<'a> DebouncedGPIO<'a> {
|
||||||
pub fn new(pin: AnyPin, system_tick_rate_hz: usize, debounce_time_ms: usize) -> Self {
|
pub fn new(pin: AnyPin, system_tick_rate_hz: usize, debounce_time_ms: usize) -> Self {
|
||||||
// coin debounce timer (100ms)
|
// coin debounce timer (100ms)
|
||||||
Self {
|
Self {
|
||||||
input: Input::new(pin, Pull::Up),
|
input: Input::new(pin, Pull::None),
|
||||||
value: false,
|
value: false,
|
||||||
ready: false,
|
ready: false,
|
||||||
active: false,
|
active: false,
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,12 @@ impl Usb {
|
||||||
pub fn powered(&self) -> bool {
|
pub fn powered(&self) -> bool {
|
||||||
self.usb_pin.is_high()
|
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 {
|
pub struct Amplifier {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue