Skip to content

Commit 6f833fe

Browse files
committed
Reduce reset pulse duration (100ms -> 1ns)
According to the datasheet, reset must stay active (low) "within a **maximum** time of 100ms" (section 8.1), 1ns seems to work just fine.
1 parent 6b3421d commit 6f833fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pcd8544_gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ where
2626
delay: &mut R,
2727
) -> Pcd8544Gpio<CLK, DIN, DC, CS> {
2828
let _ = rst.set_low();
29-
delay.delay_ms(10);
29+
delay.delay_ns(1);
3030
let _ = rst.set_high();
3131

3232
let mut pcd = Pcd8544Gpio { clk, din, dc, cs };

src/pcd8544_spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ where
2424
delay: &mut R,
2525
) -> Pcd8544Spi<SPI, DC, CS> {
2626
let _ = rst.set_low();
27-
delay.delay_ms(10);
27+
delay.delay_ns(1);
2828
let _ = rst.set_high();
2929

3030
let mut pcd = Pcd8544Spi { spi, dc, cs };

0 commit comments

Comments
 (0)