Selects the registers to affect by the next data write.
(pins: &mut P, spi_bus: &mut B, regs: &[u8])
| 186 | |
| 187 | /// Selects the registers to affect by the next data write. |
| 188 | fn lcd_write_reg(pins: &mut P, spi_bus: &mut B, regs: &[u8]) -> io::Result<()> { |
| 189 | pins.write(OUTPUT_PIN_DC, false)?; |
| 190 | lcd_write(spi_bus, regs) |
| 191 | } |
| 192 | |
| 193 | /// Writes data to the device. A register should have been selected before. |
| 194 | fn lcd_write_data(pins: &mut P, spi_bus: &mut B, data: &[u8]) -> io::Result<()> { |