MCPcopy Index your code
hub / github.com/endbasic/endbasic / lcd_reset

Method lcd_reset

st7735s/src/lib.rs:200–208  ·  view source on GitHub ↗

Resets the LCD.

(pins: &mut P)

Source from the content-addressed store, hash-verified

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<()> {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected