Skip to content

Commit

Permalink
update for embedded-hal 1.0.0-alpha.7
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Oct 22, 2022
1 parent 56372dd commit 37fcafb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl KeyColumns<$size> for $Type {
}

fn enable_column(&mut self, col: usize) -> Result<(), ()> {
use embedded_hal::digital::v2::OutputPin;
use embedded_hal::digital::blocking::OutputPin;
match col {
$(
$index => OutputPin::set_low(&mut self.$col_name).map_err(drop),
Expand All @@ -136,7 +136,7 @@ impl KeyColumns<$size> for $Type {
}

fn disable_column(&mut self, col: usize) -> Result<(), ()> {
use embedded_hal::digital::v2::OutputPin;
use embedded_hal::digital::blocking::OutputPin;
match col {
$(
$index => OutputPin::set_high(&mut self.$col_name).map_err(drop),
Expand Down Expand Up @@ -186,7 +186,7 @@ impl KeyRows<$size> for $Type {
}

fn read_row(&mut self, row: usize) -> Result<bool, ()> {
use embedded_hal::digital::v2::InputPin;
use embedded_hal::digital::blocking::InputPin;
match row {
$(
$index => InputPin::is_low(&self.$row_name).map_err(drop),
Expand Down

0 comments on commit 37fcafb

Please sign in to comment.