From 87762115369e87cc3865cb1b9a8ee38a98e35162 Mon Sep 17 00:00:00 2001 From: Chris <11088935+caemor@users.noreply.github.com> Date: Fri, 27 Mar 2020 10:12:12 +0100 Subject: [PATCH] Update Readme example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8771ade..6514acd 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,7 @@ There are multiple examples in the examples folder. For more infos about the exa let mut epd = EPD4in2::new(&mut spi, cs, busy, dc, rst, &mut delay)?; // Setup the graphics -let mut buffer = Buffer4in2::default(); -let mut display = Display::new(epd.width(), epd.height(), &mut buffer.buffer); +let mut display = Display4in2::default(); // Draw some text display.draw(