Added delay to wait_for_display for better compatibility
This commit is contained in:
parent
0804a16639
commit
18d3720566
1 changed files with 1 additions and 0 deletions
|
|
@ -282,6 +282,7 @@ impl<BusyPin: InputPin, ResetPin: OutputPin, DcPin: OutputPin, Spi: SpiDevice, D
|
||||||
}
|
}
|
||||||
|
|
||||||
fn wait_for_display(&mut self) {
|
fn wait_for_display(&mut self) {
|
||||||
|
self.delay.delay_ms(1);
|
||||||
while self.busy.is_low().expect("Failed to read busy pin") {}
|
while self.busy.is_low().expect("Failed to read busy pin") {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue