Skip to content

Commit 25e5e7e

Browse files
committed
Revert "Change DIO level in the middle of the (low) clock pulse"
This change was too hasty: While now there are nice delays between CLK and DIO changes, there's no longer a delay between CLK rising at the end of a bit, and CLK falling for the next bit. That doesn't work. This reverts commit 5b75875.
1 parent 5b75875 commit 25e5e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ where
125125

126126
fn send_bit_and_delay(&mut self, value: Bit) -> Res<E> {
127127
self.clk.set_low()?;
128-
self.delay();
129128
if let Bit::ONE = value {
130129
self.dio.set_high()?;
131130
} else {
132131
self.dio.set_low()?;
133132
}
133+
self.delay();
134134
self.clk.set_high()?;
135135
self.delay();
136136

0 commit comments

Comments
 (0)