forked from hurzhurz/UTFT-STM8S
-
Notifications
You must be signed in to change notification settings - Fork 3
/
memorysaver.h
98 lines (87 loc) · 3.59 KB
/
memorysaver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// UTFT Memory Saver
// -----------------
//
// Since most people have only one or possibly two different display modules a lot
// of memory has been wasted to keep support for many unneeded controller chips.
// You now have the option to remove this unneeded code from the library with
// this file.
// By disabling the controllers you don't need you can reduce the memory footprint
// of the library by several Kb.
//
// Uncomment the lines for the displaycontrollers that you don't use to save
// some flash memory by not including the init code for that particular
// controller.
//#define DISABLE_CPLD 1 // CTE50CPLD / CTE70CPLD / EHOUSE50CPLD
//#define DISABLE_HX8340B_8 1 // ITDB22 8bit mode
//#define DISABLE_HX8352A 1 // ITDB32WD / CTE32W
//#define DISABLE_HX8353C 1 // DMTFT18101
//#define DISABLE_ILI9325D 1 // ITDB24D / ITDB24DWOT / ITDB28 / DMTFT24104 / DMTFT28103 - This single define will disable both 8bit and 16bit mode for this controller
//#define DISABLE_ILI9325D_ALT 1 // CTE28
//#define DISABLE_ILI9341_S4P 1 // MI0283QT9
//#define DISABLE_ILI9341_S5P 1 // DMTFT28105
//#define DISABLE_ILI9341_8 1 // ITDB24E_V2_8 / ITDB28_V2
//#define DISABLE_ILI9341_16 1 // CTE32_R2 / ITDB24E_V2_16 / ITDB32S_V2
//#define DISABLE_ILI9481 1 // CTE32HR
//#define DISABLE_ILI9486 1 // CTE40
//#define DISABLE_PCF8833 1 // LPH9135
//#define DISABLE_R61581 1 // CTE35IPS
//#define DISABLE_S6D0164 1 // CTE22 / DMTFT22102
//#define DISABLE_S6D1121 1 // ITDB24E - This single define will disable both 8bit and 16bit mode for this controller
//#define DISABLE_SSD1289 1 // ITDB32S / ELEE32_REVA / ELEE32_REVB / CTE32 - This single define will disable both 8bit, 16bit and latched mode for this controller
//#define DISABLE_SSD1963_480 1 // ITDB43
//#define DISABLE_SSD1963_800 1 // ITDB50 / CTE50 / EHOUSE50
//#define DISABLE_SSD1963_800_ALT 1 // CTE70 / EHOUSE70
//#define DISABLE_ST7735 1 // ITDB18SP
// ----------------------------------------------------------------------------
// The following TFT controllers are used by display modules and shields that
// have been retired by their vendors. They are still supported but support may
// be removed in future versions of the library. These controllers are disabled
// by default to save flash memory. To use them you must enable support for
// them by commenting them out here.
#define DISABLE_HX8340B_S 1 // ITDB22 Serial mode
#define DISABLE_HX8347A 1 // ITDB32
#define DISABLE_ILI9325C 1 // ITDB24
#define DISABLE_ILI9327 1 // ITDB32WC
#define DISABLE_S1D19122 1 // ITDB25H
#define DISABLE_SSD1289
#define DISABLE_ILI9325D
#define DISABLE_ILI9325D_ALT
#define DISABLE_HX8340B_8
#define DISABLE_ST7735
#define DISABLE_PCF8833
#define DISABLE_HX8352A
#define DISABLE_SSD1963_480
#define DISABLE_SSD1963_800
#define DISABLE_SSD1963_800_ALT
#define DISABLE_S6D1121
#define DISABLE_ILI9481
#define DISABLE_S6D0164
#define DISABLE_ILI9341_S4P
#define DISABLE_ILI9341_S5P
#define DISABLE_ILI9341_8
#define DISABLE_ILI9341_16
#define DISABLE_R61581
#define DISABLE_ILI9486
#define DISABLE_CPLD
#define DISABLE_HX8353C
#define DISABLE_HX8352A
#define DISABLE_SSD1289
#define DISABLE_ILI9325D
#define DISABLE_ILI9325D_ALT
#define DISABLE_HX8340B_8
#define DISABLE_ST7735
#define DISABLE_PCF8833
#define DISABLE_SSD1963_480
#define DISABLE_SSD1963_800
#define DISABLE_SSD1963_800_ALT
#define DISABLE_S6D1121
#define DISABLE_ILI9481
#define DISABLE_S6D0164
#define DISABLE_ILI9341_S4P
#define DISABLE_ILI9341_S5P
#define DISABLE_ILI9341_8
#define DISABLE_ILI9341_16
#define DISABLE_R61581
#define DISABLE_ILI9486
#define DISABLE_CPLD
#define DISABLE_HX8353C