mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
epd7in5 HD: Formatted with cargo fmt
This commit is contained in:
@@ -182,7 +182,8 @@ where
|
|||||||
|
|
||||||
for cmd in &[Command::WRITE_RAM_BW, Command::WRITE_RAM_RED] {
|
for cmd in &[Command::WRITE_RAM_BW, Command::WRITE_RAM_RED] {
|
||||||
self.command(spi, *cmd)?;
|
self.command(spi, *cmd)?;
|
||||||
self.interface.data_x_times(spi, background_color_byte, pixel_count)?;
|
self.interface
|
||||||
|
.data_x_times(spi, background_color_byte, pixel_count)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.cmd_with_data(spi, Command::DISPLAY_UPDATE_CONTROL_2, &[0xF7])?;
|
self.cmd_with_data(spi, Command::DISPLAY_UPDATE_CONTROL_2, &[0xF7])?;
|
||||||
|
|||||||
Reference in New Issue
Block a user