Skip to content

Commit 37fcafb

Browse files
committed
update for embedded-hal 1.0.0-alpha.7
1 parent 56372dd commit 37fcafb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl KeyColumns<$size> for $Type {
126126
}
127127

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

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

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

0 commit comments

Comments
 (0)