Resets the LCD.
(pins: &mut P)
| 198 | |
| 199 | /// Resets the LCD. |
| 200 | fn lcd_reset(pins: &mut P) -> io::Result<()> { |
| 201 | pins.write(OUTPUT_PIN_RST, true)?; |
| 202 | std::thread::sleep(Duration::from_millis(100)); |
| 203 | pins.write(OUTPUT_PIN_RST, false)?; |
| 204 | std::thread::sleep(Duration::from_millis(100)); |
| 205 | pins.write(OUTPUT_PIN_RST, true)?; |
| 206 | std::thread::sleep(Duration::from_millis(100)); |
| 207 | Ok(()) |
| 208 | } |
| 209 | |
| 210 | /// Sets up the LCD registers. |
| 211 | fn lcd_init_reg(pins: &mut P, spi_bus: &mut B) -> io::Result<()> { |