feat: allow schmitt, slew, and drive strength be set from Flex, Input, Output

Allows the schmitt, slew and drive strength to be set from Flex. Input and Output[OpenDrain] also expose the appropriate setters.
This commit is contained in:
Jonathan Dickinson
2023-10-01 21:47:50 -04:00
parent a1036e111e
commit f98c8886b2
2 changed files with 41 additions and 0 deletions

View File

@ -78,6 +78,9 @@ async fn main(_spawner: Spawner) {
// Set up the signal pin that will be used to trigger the keyboard.
let mut signal_pin = Input::new(p.PIN_16, Pull::None);
// Enable the schmitt trigger to slightly debounce.
signal_pin.set_schmitt(true);
let (reader, mut writer) = hid.split();
// Do stuff with the class!