Skip to content

Commit a217d7e

Browse files
authored
Merge pull request #28 from makermelissa/master
Updated Example Pins to be consistent and work on a feather
2 parents 1fedebb + 6417350 commit a217d7e

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

examples/ThinkInk_gray4/ThinkInk_gray4.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
#include "Adafruit_ThinkInk.h"
1111

12-
#define EPD_CS 10
13-
#define EPD_DC 9
14-
#define SRAM_CS 11
12+
#define EPD_CS 9
13+
#define EPD_DC 10
14+
#define SRAM_CS 6
1515
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
1616
#define EPD_BUSY 7 // can set to -1 to not use a pin (will wait a fixed delay)
1717

examples/ThinkInk_mono/ThinkInk_mono.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99

1010
#include "Adafruit_ThinkInk.h"
1111

12-
#define SD_CS 5
13-
#define SRAM_CS 6
1412
#define EPD_CS 9
15-
#define EPD_DC 10
16-
#define EPD_RESET -1 // can set to -1 and share with microcontroller Reset!
17-
#define EPD_BUSY -1 // can set to -1 to not use a pin (will wait a fixed delay)
13+
#define EPD_DC 10
14+
#define SRAM_CS 6
15+
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
16+
#define EPD_BUSY 7 // can set to -1 to not use a pin (will wait a fixed delay)
1817

1918
//ThinkInk_154_Mono_D67 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
2019
//ThinkInk_154_Mono_D27 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

examples/ThinkInk_partial/ThinkInk_partial.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
#include "Adafruit_ThinkInk.h"
1111

12-
#define EPD_CS 10
13-
#define EPD_DC 9
14-
#define SRAM_CS -1
12+
#define EPD_CS 9
13+
#define EPD_DC 10
14+
#define SRAM_CS 6
1515
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
16-
#define EPD_BUSY 6 // can set to -1 to not use a pin (will wait a fixed delay)
16+
#define EPD_BUSY 7 // can set to -1 to not use a pin (will wait a fixed delay)
1717

18-
//ThinkInk_290_Grayscale4 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
18+
//ThinkInk_290_Grayscale4_T5 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
1919
ThinkInk_154_Mono_D67 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
2020

2121
void setup() {

examples/ThinkInk_tricolor/ThinkInk_tricolor.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99

1010
#include "Adafruit_ThinkInk.h"
1111

12-
13-
#define EPD_CS 10
14-
#define EPD_DC 9
15-
#define SRAM_CS -1
12+
#define EPD_CS 9
13+
#define EPD_DC 10
14+
#define SRAM_CS 6
1615
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
17-
#define EPD_BUSY 6 // can set to -1 to not use a pin (will wait a fixed delay)
16+
#define EPD_BUSY 7 // can set to -1 to not use a pin (will wait a fixed delay)
1817

1918
//ThinkInk_154_Tricolor_Z17 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
2019
//ThinkInk_213_Tricolor_RW display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

0 commit comments

Comments
 (0)