Still trying to fix an error

embedded-hal-1.0
Chris 2018-10-10 21:30:22 +02:00
parent 2e4ee5308a
commit aa7497fa60
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,7 @@ impl<'a> InputPin for HackInputPin<'a> {
*
*/
fn main() {
run().map_err(|e| println!("{:?}", e.to_string()));
run().map_err(|e| println!("{}", e.to_string()));
}

View File

@ -97,6 +97,7 @@ where
// power on
self.command(spi, Command::POWER_ON)?;
delay.delay_ms(5);
self.wait_until_idle();
// set the panel settings
@ -192,7 +193,7 @@ where
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() {
// self.send_data(spi, &[color_value])?;
//}