Cleaning up.

This commit is contained in:
Jonathan Pallant (42 Technology) 2021-09-27 18:43:01 +01:00
parent 225eabb449
commit b894ab9ce7
2 changed files with 4 additions and 3 deletions

View file

@ -96,7 +96,8 @@ fn main() -> ! {
pins.gpio20.into_push_pull_output(), // d6
pins.gpio21.into_push_pull_output(), // d7
&mut delay,
).unwrap();
)
.unwrap();
// Clear the screen
lcd.reset(&mut delay).unwrap();

View file

@ -95,7 +95,7 @@ fn main() -> ! {
);
// Write out 0, ignore return value
if let Ok(_) = spi.write(&[0]) {
if spi.write(&[0]).is_ok() {
// SPI write was succesful
};