From 25fb6da55878415ecf7bda73aeb8f43574231bd4 Mon Sep 17 00:00:00 2001 From: Rudi Strydom <1902518+Rudis1261@users.noreply.github.com> Date: Tue, 11 Jan 2022 16:51:14 +0200 Subject: [PATCH] Update README.md Some of the code gets lost in Markdown, just adding code blocks around it so you can see what the correct content is. --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 24c5317..733a061 100644 --- a/README.md +++ b/README.md @@ -37,27 +37,27 @@ Apparently, the original design used revision 1 of the display, while many newly > >Next, go to your Arduino sketch. This is for the hardware-test script. Enable line numbering and go to line 43 which reads - > ->GxEPD2_290 display(/*CS=*/ PIN_CS, /*DC=*/ PIN_DC, /*RST=*/ PIN_RST, /*BUSY=*/ PIN_BUSY); +```c +GxEPD2_290 display(/*CS=*/ PIN_CS, /*DC=*/ PIN_DC, /*RST=*/ PIN_RST, /*BUSY=*/ PIN_BUSY); +``` > >Change this to - -> ->GxEPD2_290_T94 display(/*CS=*/ PIN_CS, /*DC=*/ PIN_DC, /*RST=*/ PIN_RST, /*BUSY=*/ PIN_BUSY); -> + +```c +GxEPD2_290_T94 display(/*CS=*/ PIN_CS, /*DC=*/ PIN_DC, /*RST=*/ PIN_RST, /*BUSY=*/ PIN_BUSY); +``` + >Then go to settings.h > >Lines 2 - 7 need to be altered so change that section of code as follows - -> ->const byte PIN_DIN = 16; -> ->const byte PIN_CLK = 15; -> ->const byte PIN_CS = 19; -> ->const byte PIN_DC = 18; -> ->const byte PIN_RST = 10; -> ->const byte PIN_BUSY = 14; +```c +const byte PIN_DIN = 16; +const byte PIN_CLK = 15; +const byte PIN_CS = 19; +const byte PIN_DC = 18; +const byte PIN_RST = 10; +const byte PIN_BUSY = 14; +``` > >The sketch will then compile and when uploaded to the board you will get the Waveshare drawing all sorts of Austin Powers time machine circles that make your eyes spin!