mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Still trying to fix an error
This commit is contained in:
@@ -62,7 +62,7 @@ impl<'a> InputPin for HackInputPin<'a> {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
fn main() {
|
fn main() {
|
||||||
run().map_err(|e| println!("{:?}", e.to_string()));
|
run().map_err(|e| println!("{}", e.to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -97,6 +97,7 @@ where
|
|||||||
|
|
||||||
// power on
|
// power on
|
||||||
self.command(spi, Command::POWER_ON)?;
|
self.command(spi, Command::POWER_ON)?;
|
||||||
|
delay.delay_ms(5);
|
||||||
self.wait_until_idle();
|
self.wait_until_idle();
|
||||||
|
|
||||||
// set the panel settings
|
// set the panel settings
|
||||||
@@ -192,7 +193,7 @@ where
|
|||||||
|
|
||||||
|
|
||||||
self.command(spi, Command::DATA_START_TRANSMISSION_1)?;
|
self.command(spi, Command::DATA_START_TRANSMISSION_1)?;
|
||||||
self.send_data(spi, &[color_value; WIDTH as usize / 8 * HEIGHT as usize]);
|
self.send_data(spi, &[color_value; WIDTH as usize / 8 * HEIGHT as usize])?;
|
||||||
//for _ in 0..buffer.len() {
|
//for _ in 0..buffer.len() {
|
||||||
// self.send_data(spi, &[color_value])?;
|
// self.send_data(spi, &[color_value])?;
|
||||||
//}
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user