Skip to content

Commit a86229e

Browse files
Update usage for reTerminal E1001 with 7.5inch ePaper
1 parent 39d27f5 commit a86229e

File tree

3 files changed

+72
-10
lines changed

3 files changed

+72
-10
lines changed

User_Setup_Select.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@
160160
#include <User_Setups/Setup666_XIAO_ILI9341.h> // Default Setup file for Seeed XIAO
161161
// #include <User_Setups/Setup500_Seeed_Wio_Terminal.h> // Setup file for Seeed Wio Terimal with SPI ILI9341 320x240
162162
// #include <User_Setups/Setup501_Seeed_XIAO_Round_Display.h> // Setup file for Seeed XIAO ROUND with GC9A01 240 x 240
163+
// #include <User_Setups/Setup520_Seeed_reTerminal_E1001.h> // Setup file for Seeed reTerminal E1001 with 7.5inch ePaper
163164

164-
/************************************* EPAPER *************************************/
165+
/************************************ Seeed XIAO EPAPER *************************************/
165166
#define ENABLE_EPAPER_BOARD_PIN_SETUPS // Enable this macro to enable the following board pin presets
166167

167168
// #define USE_XIAO_EPAPER_DRIVER_BOARD // Uncomment to enable ePaper Driver Board for Seeed Studio XIAO pin presets
168169
// #define USE_XIAO_EPAPER_DISPLAY_BOARD // Uncomment to enable XIAO ePaper Monitor Kit pin presets
169-
// #define USE_RETERMINAL_E1001_BOARD // Uncomment to enable reTerminal E1001 pin presets
170170

171171
// #include <User_Setups/Setup502_Seeed_XIAO_EPaper_7inch5.h> // Setup file for Seeed XIAO with 7.5inch ePaper
172172
// #include <User_Setups/Setup503_Seeed_XIAO_EPaper_5inch83.h> // Setup file for Seeed XIAO with 5.83inch ePaper
@@ -176,6 +176,7 @@
176176
// #include <User_Setups/Setup507_Seeed_XIAO_EPaper_4inch2.h> // Setup file for Seeed XIAO with 4.2inch ePaper
177177
// #include <User_Setups/Setup508_Seeed_XIAO_EPaper_2inch13.h> // Setup file for Seeed XIAO with 2.13inch ePaper
178178

179+
179180
#endif // USER_SETUP_LOADED
180181

181182
// Compatible with some examples

User_Setups/EPaper_Board_Pins_Setups.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,4 @@
1515
#define TFT_DC 10 // D16
1616
#define TFT_BUSY 4 // D3
1717
#define TFT_RST 38 // D11
18-
#elif defined(USE_RETERMINAL_E1001_BOARD)
19-
#define TFT_SCLK D8
20-
#define TFT_MISO -1
21-
#define TFT_MOSI D10
22-
#define TFT_CS 10 // D16
23-
#define TFT_DC 11 // D19
24-
#define TFT_BUSY 13 // D17
25-
#define TFT_RST 12 // D18
2618
#endif
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#include <Wire.h>
2+
3+
#define USER_SETUP_ID 520
4+
5+
#define UC8179_DRIVER
6+
7+
#define EPAPER_ENABLE
8+
9+
#define TFT_WIDTH 800
10+
#define TFT_HEIGHT 480
11+
12+
#define EPD_WIDTH TFT_WIDTH
13+
#define EPD_HEIGHT TFT_HEIGHT
14+
15+
// #define EPD_HORIZONTAL_MIRROR
16+
17+
#define TFT_SCLK D8
18+
#define TFT_MISO -1
19+
#define TFT_MOSI D10
20+
#define TFT_CS 10 // D16
21+
#define TFT_DC 11 // D19
22+
#define TFT_BUSY 13 // D17
23+
#define TFT_RST 12 // D18
24+
25+
#define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
26+
#define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
27+
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
28+
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
29+
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-.
30+
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
31+
// #define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT
32+
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
33+
34+
#define SMOOTH_FONT
35+
36+
#ifdef CONFIG_IDF_TARGET_ESP32S3
37+
#define USE_HSPI_PORT
38+
#endif
39+
40+
#if defined(SEEED_XIAO_M0)
41+
#define SPI_FREQUENCY 10000000
42+
#define SPI_READ_FREQUENCY 4000000
43+
#elif defined(ARDUINO_XIAO_ESP32S3) || defined(ARDUINO_XIAO_ESP32S3_PLUS)
44+
#define SPI_FREQUENCY 10000000
45+
#define SPI_READ_FREQUENCY 4000000
46+
#elif defined(ARDUINO_XIAO_ESP32C3)
47+
#define SPI_FREQUENCY 10000000
48+
#define SPI_READ_FREQUENCY 4000000
49+
#elif defined(ARDUINO_XIAO_ESP32C6)
50+
#define SPI_FREQUENCY 10000000
51+
#define SPI_READ_FREQUENCY 4000000
52+
#elif defined(ARDUINO_SEEED_XIAO_NRF52840) || defined(ARDUINO_SEEED_XIAO_NRF52840_SENSE) || defined(ARDUINO_Seeed_XIAO_nRF52840) || defined(ARDUINO_Seeed_XIAO_nRF52840_Sense)
53+
#define SPI_FREQUENCY 10000000
54+
#define SPI_READ_FREQUENCY 4000000
55+
#define ltoa itoa
56+
#elif defined(ARDUINO_SEEED_XIAO_RP2040) || defined(ARDUINO_SEEED_XIAO_RP2350)
57+
#define SPI_FREQUENCY 10000000
58+
#define SPI_READ_FREQUENCY 4000000
59+
#elif defined(ARDUINO_XIAO_RA4M1)
60+
#define SPI_FREQUENCY 10000000
61+
#define SPI_READ_FREQUENCY 4000000
62+
#elif defined (EFR32MG24B220F1536IM48)
63+
#define SPI_FREQUENCY 10000000
64+
#define SPI_READ_FREQUENCY 4000000
65+
#else
66+
#pragma message "Unknown board using default SPI settings (1MHz)"
67+
#define SPI_FREQUENCY 10000000
68+
#define SPI_READ_FREQUENCY 4000000
69+
#endif

0 commit comments

Comments
 (0)